Composer [UnexpectedValueException] error will trying to use composer to install a github project

前端 未结 2 1283
渐次进展
渐次进展 2020-12-21 04:42

I am trying to install a github project using composer and get the following error

Composer [UnexpectedValueException] Your Github oauth token for github.com conta

相关标签:
2条回答
  • 2020-12-21 05:12

    I fixed it.

    Goto C:\Users\XXXXX\AppData\Roaming\Composer

    Open the auth.json

    delete the github.com entry under "github-oauth": {}

    That's it.

    0 讨论(0)
  • 2020-12-21 05:21

    As far as I know (I'm a beginner with composer too), the problem is with your authentication, so you have to fix your credentials in auth.json inside path-to-composer/.composer/

    Inside you will find a json which will probably looks like:

    {
      "github-oauth": {
        "github.com": null
      }
    }
    

    Fix that and you should be ok ;)

    0 讨论(0)
提交回复
热议问题