我正在尝试安装laravel社交名流,但它没有安装。我正在使用基本安装命令
composer require laravel/socialite
但它给了我以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.3.26
- Conclusion: don't install laravel/framework v5.3.26
- laravel/socialite v3.0.0 requires illuminate/support ~5.4 -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
- laravel/socialite v3.0.2 requires illuminate/support ~5.4 -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
- laravel/socialite v3.0.3 requires illuminate/support ~5.4 -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
- laravel/socialite v3.0.4 requires illuminate/support ~5.4 -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
- laravel/socialite v3.0.5 requires illuminate/support ~5.4 -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
- laravel/socialite v3.0.6 requires illuminate/support ~5.4 -> satisfiable by illuminate/support[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.9].
- don't install illuminate/support v5.4.0|don't install laravel/framework v5.3.26
- don't install illuminate/support v5.4.13|don't install laravel/framework v5.3.26
- don't install illuminate/support v5.4.17|don't install laravel/framework v5.3.26
- don't install illuminate/support v5.4.19|don't install laravel/framework v5.3.26
- don't install illuminate/support v5.4.9|don't install laravel/framework v5.3.26
- Installation request for laravel/framework (locked at v5.3.26, required as 5.3.*) -> satisfiable by laravel/framework[v5.3.26].
- Installation request for laravel/socialite ^3.0 -> satisfiable by laravel/socialite[v3.0.0, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6].
Installation failed, reverting ./composer.json to its original content.
我已经成功实现了默认的 laravel 身份验证,它可以正常工作。我不知道这个有什么问题...
- Installation request for laravel/framework (locked at v5.3.26, required as 5.3.*) -> satisfiable by laravel/framework[v5.3.26].
发生这种情况是因为您将laravel/laravel
锁定到版本 5.3.26
,但您希望安装laravel/socialite
需要illuminate/support
版本 ~5.4
,这也是laravel/laravel
版本 ~5.4
。
可能的解决方案:
- 使用
laravel/socialite
版本~2.0
(通过执行composer require laravel/socialite:~2.0
(,它符合您当前使用的laravel/laravel
版本。 - 如果您确实需要使用
laravel/socialite
版本~3.0
,则必须通过执行composer require laravel/laravel:~5.4
将laravel/laravel
升级到版本~5.4