composer unable to install laravel/passport

后端 未结 7 1424
南方客
南方客 2020-12-20 13:32

I have created a new project with

laravel new blogposts

using \"Laravel Installer 2.0.1\" globally installed on my ubuntu 18.

Wh

相关标签:
7条回答
  • 2020-12-20 14:13

    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.

    0 讨论(0)
  • 2020-12-20 14:17

    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
    
    0 讨论(0)
  • 2020-12-20 14:18

    Try this! It worked for me

    composer require paragonie/random_compat:2.*
    composer require laravel/passport=~4.0
    
    0 讨论(0)
  • 2020-12-20 14:22

    simply install any lower version of passport, Run the command:

    composer require laravel/passport "5.*"

    0 讨论(0)
  • 2020-12-20 14:24

    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.

    0 讨论(0)
  • 2020-12-20 14:29

    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
    
    0 讨论(0)
提交回复
热议问题