首页 文章

Laravel 5.3社交网站安装错误

提问于
浏览
3

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

composer require laravel/socialite

但我会得到以下错误

您的要求无法解析为可安装的软件包问题1 - laravel / socialite v3.0.0需要照亮/ http~5.4 - >可以通过illuminate / http [v5.4.0]来满足 . - laravel / socialite v3.0.2要求照亮/ http~5.4 - >可以通过illuminate / http [v5.4.0]来满足 . - laravel / socialite v3.0.3需要照亮/ http~5.4 - >可以通过illuminate / http [v5.4.0]来满足 . - 结论:不要安装illuminate / http v5.4.0 - laravel / socialite ^ 3.0的安装请求 - > laravel / socialite [v3.0.0,v3.0.2,v3.0.3]可以满足 .

Laravel版本:5.3

php版本7.0.13

2 回答

  • 4

    我认为问题是你正在尝试为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兼容的较旧版本的社交名称,如:

    composer require laravel/socialite 2.0
    
  • 0

    方案:

    对于laravel 5.3

    运行以下命令,这将适合您 .

    composer require laravel/socialite ^2.0
    

相关问题