laravel socialite没有安装

时间:2017-05-10 16:51:40

标签: laravel laravel-5.2 composer-php laravel-5.3

我正在尝试安装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身份验证,它可以正常运行。我不知道这个问题是什么......

1 个答案:

答案 0 :(得分:1)

- 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,该版本位于{{ 1}}版本laravel/laravel也是。

可能的解决方案:

  1. 使用~5.4版本laravel/socialite(通过执行~2.0),它符合您当前使用的composer require laravel/socialite:~2.0版本。
  2. 如果您确实需要使用laravel/laravel版本laravel/socialite,则必须执行~3.0 laravel/laravel升级为版本~5.4 >