gpt4 book ai didi

php - 如何在 Laravel 5.2 上安装 Socialite 2.0

转载 作者:可可西里 更新时间:2023-11-01 00:40:15 25 4
gpt4 key购买 nike

我正在尝试通过 composer 在 laravel 5.2 上安装 socialite 2.0,但它给了我一个错误:

The requested package laravel/socialite ^3.0 exists as laravel/socialite[v2.0.0] but these are rejected by your constraint.

- laravel/socialite v3.0.2 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0, v5.4.13, v5.4.9].
- laravel/socialite v3.0.3 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0, v5.4.13, v5.4.9].
- illuminate/http v5.4.9 requires php >=5.6.4 -> your PHP version (5.5.22) does not satisfy that requirement.
- illuminate/http v5.4.13 requires php >=5.6.4 -> your PHP version (5.5.22) does not satisfy that requirement.
- illuminate/http v5.4.0 requires php >=5.6.4 -> your PHP version (5.5.22) does not satisfy that requirement.
- Installation request for laravel/socialite ^3.0 -> satisfiable by laravel/socialite[v3.0.0, v3.0.2, v3.0.3].

socialite 3.0 需要 laravel 5.4,我无法安装,因为我的 php 版本是 5.5,有解决方案吗?

最佳答案

composer.json 更新为 "laravel/socialite": "2.0.20",使用准确的版本。在 here 中找到它.

更新

使用 ~ 获取最新版本的 2.*。以下意味着 >= 2.0 和 < 3.0.0

"laravel/socialite": "~2.0"

关于php - 如何在 Laravel 5.2 上安装 Socialite 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42979471/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com