composer unable to install laravel/passport

穿精又带淫゛_ 提交于 2019-11-29 13:19:17

This link may help you https://github.com/laravel/passport/issues/774

They said, it fixed their issue

composer require paragonie/random_compat:2.*
composer require laravel/passport

Same issue with Laravel 5.5.40 or higher. So you need to specify the version of the passport like this;

composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0

Go to your composer.json file, remove the version

You need to set it to:

{
    "require": {
        "rackspace/php-opencloud": "dev-master"
    }
}

Go to your composer.json file

And set below :

"require": {
        "php": ">=7.0.0",
        "fideloper/proxy": "~3.3",
        "guzzlehttp/guzzle": "^6.3",
        "laravel/framework": "5.5.*",
        "laravel/passport": "~4.0",
        "laravel/socialite": "^3.0",
        "laravel/tinker": "~1.0",
    },

And then run composer update command.

I am unable to comment since I do not have 50 Rep but I would like to add onto rkj's solution. Those commands do work but in my case I was running laravel through homestead and you cannot fetch those packages while sshing into homestead you must use your global composer to fetch the packages. This is a windows 10 machine also to clarify.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!