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

前端 未结 2 1292
渐次进展
渐次进展 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: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 ;)

提交回复
热议问题