laravel安装dingo/api失败
报错如下:
可以直接拉到最后看解决方案
Your requirements could not be resolved to an installable set of packages.
Problem 1
– Conclusion: don't install dingo/api v1.0.0-beta8
– Conclusion: don't install dingo/api v1.0.0-beta7
– Conclusion: don't install dingo/api v1.0.0-beta6
– Conclusion: don't install dingo/api v1.0.0-beta5
– Conclusion: don't install dingo/api v1.0.0-beta4
– Conclusion: don't install dingo/api v1.0.0-beta3
– Conclusion: don't install dingo/api v1.0.0-beta2
– Conclusion: remove laravel/framework v5.5.33
– Conclusion: don't install dingo/api v1.0.0-beta8|remove phpdocumentor/reflection-docblock 4.3.0|install dingo/blueprint 0.2.2|install dingo/blueprint v0.2.0|install dingo/blu
eprint v0.2.1
– Conclusion: don't install dingo/api v1.0.0-beta8|don't install phpdocumentor/reflection-docblock 4.3.0|install dingo/blueprint 0.2.2|install dingo/blueprint v0.2.0|install di
ngo/blueprint v0.2.1
– Conclusion: don't install dingo/api v1.0.0-beta8|remove phpdocumentor/reflection-docblock 4.3.0|install dingo/blueprint 0.2.2|install dingo/blueprint v0.2.0|install dingo/blu
eprint v0.2.1
– Conclusion: don't install dingo/api v1.0.0-beta8|don't install phpdocumentor/reflection-docblock 4.3.0|install dingo/blueprint 0.2.2|install dingo/blueprint v0.2.0|install di
ngo/blueprint v0.2.1
– Installation request for phpdocumentor/reflection-docblock (locked at 4.3.0) -> satisfiable by phpdocumentor/reflection-docblock[4.3.0].
– Installation request for dingo/api 1.0.x@dev -> satisfiable by dingo/api[v1.0.0-beta1, v1.0.0-beta2, v1.0.0-beta3, v1.0.0-beta4, v1.0.0-beta5, v1.0.0-beta6, v1.0.0-beta7, v1.
0.0-beta8].
– Conclusion: don't install laravel/framework v5.5.33
– dingo/api v1.0.0-beta1 requires illuminate/routing 5.1.* -> satisfiable by illuminate/routing[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v
5.1.31, v5.1.41, v5.1.6, v5.1.8].
– don't install illuminate/routing v5.1.1|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.13|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.16|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.2|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.20|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.22|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.25|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.28|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.30|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.31|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.41|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.6|don't install laravel/framework v5.5.33
– don't install illuminate/routing v5.1.8|don't install laravel/framework v5.5.33
– Installation request for laravel/framework (locked at v5.5.33, required as 5.5.*) -> satisfiable by laravel/framework[v5.5.33].
Installation failed, reverting ./composer.json to its original content.
解决方案:
Add "phpdocumentor/reflection": "3.x@dev" under "require": { } in composer.json and run a composer update
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"phpdocumentor/reflection": "3.x@dev"
},
$ composer update $ composer require dingo/api:1.0.x@dev
after successful command this will add "dingo/api": "1.0.x@dev" under require.
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"phpdocumentor/reflection": "3.x@dev",
"dingo/api": "1.0.x@dev"
}