我刚刚下载了最新的 laravel 5.3,我正在尝试安装 passport,但我收到以下 composer 错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/passport v2.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- laravel/passport v2.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- Conclusion: don't install illuminate/http v5.4.0
- Installation request for laravel/passport ^2.0 -> satisfiable by laravel/passport[v2.0.0, v2.0.1].
Installation failed, reverting ./composer.json to its original content.
Composer .json 文件
http://pastebin.com/ne4RkL96
最佳答案
它发生了,因为在发布 Laravel 5.4 之后,这个包也已经更新到 v 2.0 并且需要 Laravel 5.4。但是你使用的是 Laravel 5.3。尝试安装早期版本:
composer require laravel/passport ^v1
此外,您可以在此处了解此软件包的版本:
关于php - Laravel 护照安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41886595/