编程语言
首页 > 编程语言> > php-Laravel 5.3社交名流安装错误

php-Laravel 5.3社交名流安装错误

作者:互联网

我正在尝试使用此命令安装laravel socialite插件

composer require laravel/socialite

但是我会得到以下错误

Your requirements could not be resolved to an installable set of
packages

Problem 1
– laravel/socialite v3.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
– laravel/socialite v3.0.2 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
– laravel/socialite v3.0.3 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/socialite ^3.0 -> satisfiable by laravel/socialite[v3.0.0, v3.0.2, v3.0.3].

Laravel版本:5.3

php版本7.0.13

解决方法:

我认为问题在于您正在尝试为Laravel 5.3安装最新的社交名流包,该软件包至少需要Laravel 5.4.

Problem 1 - laravel/socialite v3.0.0 requires illuminate/http ~5.4 -> satisfiable by 

尝试在Laravel 5.4上安装.

检查一下:

https://github.com/laravel/socialite/blob/3.0/composer.json

"require": {
        "php": ">=5.4.0",
        "illuminate/contracts": "~5.4",
        "illuminate/http": "~5.4",
        "illuminate/support": "~5.4",
        "guzzlehttp/guzzle": "~6.0",
        "league/oauth1-client": "~1.0"
    },

要求5.4

要么

或者,您可以使用与Laravel 5.3兼容的旧版本的socialite,例如:

composer require laravel/socialite 2.0

标签:laravel,laravel-socialite,php,laravel-5-3
来源: https://codeday.me/bug/20191026/1935274.html