由于 "Conclusion: remove doctrine/inflector 2.0.3",无法安装 "laravel-apidoc-generator"
Can't install "laravel-apidoc-generator" due to "Conclusion: remove doctrine/inflector 2.0.3"
我正在尝试在我最新的 Lumen REST API.
中安装 laravel-apidoc-generator (https://github.com/mpociot/laravel-apidoc-generator)
这是我的 Lumen 版本:Lumen (8.0.1) (Laravel Components ^8.0)
这是我的 PHP 版本:PHP 7.3.22
.
当我尝试安装 apidoc-generator 时,收到以下错误消息。
这是我用来安装的:composer require mpociot/laravel-apidoc-generator
Problem 1 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.2 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.1 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.0 - Conclusion: remove doctrine/inflector 2.0.3 - Conclusion: don't install doctrine/inflector 2.0.3 - illuminate/console 5.7.17 requires illuminate/support 5.7.* -> satisfiable by il.......
而且在这个错误之后,我也可以看到这个错误:
- Conclusion: don't install illuminate/console v8.11.2|install illuminate/console 5.7.17|install illuminate/console 5.7.18|install illuminate/console 5.7.19|install illuminate/console 5.7.x-dev|install illuminate/console 5.8.x-dev|install illuminate/console v5.7.0|install illuminate/console v5.7.1|install illuminate/console v5.7.10|install illuminate/console v5.7.11|install illuminate/console v5.7.15|install illuminate/console v5.7.2|install illuminate/console v5.7.20|install illuminate/console v5.7.21|install illuminate/console v5.7.22|install illuminate/console v5.7.23|install illuminate/console v5.7.26|install illuminate/console v5.7.27|install illuminate/console v5.7.28|install illuminate/console v5.7.3|install illuminate/console v5.7.4|install illuminate/console v5.7.5|install illuminate/console v5.7.6|install illuminate/console v5.7.7|install illuminate/console v5.7.8|install illuminate/console v5.7.9|install illuminate/console v5.8.0|install illuminate/console v5.8.11|install illuminate/console v5.8.12|install illuminate/console v5.8.14|install illuminate/console v5.8.15|install illuminate/console v5.8.17|install illuminate/console v5.8.18|install illuminate/console v5.8.19|install illuminate/console v5.8.2|install illuminate/console v5.8.20|install illuminate/console v5.8.22|install illuminate/console v5.8.24|install illuminate/console v5.8.27|install illuminate/console v5.8.28|install illuminate/console v5.8.29|install illuminate/console v5.8.3|install illuminate/console v5.8.30|install illuminate/console v5.8.31|install illuminate/console v5.8.32|install illuminate/console v5.8.33|install illuminate/console v5.8.34|install illuminate/console v5.8.35|install illuminate/console v5.8.36|install illuminate/console v5.8.4|install illuminate/console v5.8.8|install illuminate/console v5.8.9.......
这就是我到目前为止所尝试的方法。
- 我尝试安装低版本的学说。
composer require doctrine/inflector:1.4.0
它给我以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.2
- Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.1
- Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.0
- Conclusion: remove illuminate/console v8.11.2
- Installation request for mpociot/laravel-apidoc-generator ^4.8 -> satisfiable by mpociot/laravel-apidoc-generator[4.8.0, 4.8.1, 4.8.2, v4.x-dev].
- Conclusion: don't install illuminate/console v8.11.2
- mpociot/laravel-apidoc-generator v4.x-dev requires illuminate/console ^5.7|^6.0 -> satisfiable by illuminate/console[5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.
- 我清除了所有缓存并再次测试。同样的错误。
这是 Laravel/Lumen 的常见错误吗?
如何解决这个问题?
提前致谢。
如您所见on the packagist site for that package, the package is not compatible with Laravel 8. And as you can read in their issue tracker, the maintainers recommend to use knuckleswtf/scribe
我正在尝试在我最新的 Lumen REST API.
中安装 laravel-apidoc-generator (https://github.com/mpociot/laravel-apidoc-generator)这是我的 Lumen 版本:Lumen (8.0.1) (Laravel Components ^8.0)
这是我的 PHP 版本:PHP 7.3.22
.
当我尝试安装 apidoc-generator 时,收到以下错误消息。
这是我用来安装的:composer require mpociot/laravel-apidoc-generator
Problem 1 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.2 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.1 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.0 - Conclusion: remove doctrine/inflector 2.0.3 - Conclusion: don't install doctrine/inflector 2.0.3 - illuminate/console 5.7.17 requires illuminate/support 5.7.* -> satisfiable by il.......
而且在这个错误之后,我也可以看到这个错误:
- Conclusion: don't install illuminate/console v8.11.2|install illuminate/console 5.7.17|install illuminate/console 5.7.18|install illuminate/console 5.7.19|install illuminate/console 5.7.x-dev|install illuminate/console 5.8.x-dev|install illuminate/console v5.7.0|install illuminate/console v5.7.1|install illuminate/console v5.7.10|install illuminate/console v5.7.11|install illuminate/console v5.7.15|install illuminate/console v5.7.2|install illuminate/console v5.7.20|install illuminate/console v5.7.21|install illuminate/console v5.7.22|install illuminate/console v5.7.23|install illuminate/console v5.7.26|install illuminate/console v5.7.27|install illuminate/console v5.7.28|install illuminate/console v5.7.3|install illuminate/console v5.7.4|install illuminate/console v5.7.5|install illuminate/console v5.7.6|install illuminate/console v5.7.7|install illuminate/console v5.7.8|install illuminate/console v5.7.9|install illuminate/console v5.8.0|install illuminate/console v5.8.11|install illuminate/console v5.8.12|install illuminate/console v5.8.14|install illuminate/console v5.8.15|install illuminate/console v5.8.17|install illuminate/console v5.8.18|install illuminate/console v5.8.19|install illuminate/console v5.8.2|install illuminate/console v5.8.20|install illuminate/console v5.8.22|install illuminate/console v5.8.24|install illuminate/console v5.8.27|install illuminate/console v5.8.28|install illuminate/console v5.8.29|install illuminate/console v5.8.3|install illuminate/console v5.8.30|install illuminate/console v5.8.31|install illuminate/console v5.8.32|install illuminate/console v5.8.33|install illuminate/console v5.8.34|install illuminate/console v5.8.35|install illuminate/console v5.8.36|install illuminate/console v5.8.4|install illuminate/console v5.8.8|install illuminate/console v5.8.9.......
这就是我到目前为止所尝试的方法。
- 我尝试安装低版本的学说。
composer require doctrine/inflector:1.4.0
它给我以下错误:
Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.2 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.1 - Conclusion: don't install mpociot/laravel-apidoc-generator 4.8.0 - Conclusion: remove illuminate/console v8.11.2 - Installation request for mpociot/laravel-apidoc-generator ^4.8 -> satisfiable by mpociot/laravel-apidoc-generator[4.8.0, 4.8.1, 4.8.2, v4.x-dev]. - Conclusion: don't install illuminate/console v8.11.2 - mpociot/laravel-apidoc-generator v4.x-dev requires illuminate/console ^5.7|^6.0 -> satisfiable by illuminate/console[5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.
- 我清除了所有缓存并再次测试。同样的错误。
这是 Laravel/Lumen 的常见错误吗? 如何解决这个问题?
提前致谢。
如您所见on the packagist site for that package, the package is not compatible with Laravel 8. And as you can read in their issue tracker, the maintainers recommend to use knuckleswtf/scribe