简体   繁体   中英

Composer.phar install issue

I've trying to install composer however I can't understand this line, what do i need to do? I've try going to the github tokens settings but which token do I actually need to generate? Does anyone encounter issue similar to this when installing?

    php composer.phar install

Could not fetch https://api.github.com/repos/paypal/sdk-core-php/zipball/9826992e67c2fdac3999c8e29bb71f423f64c2a2 , please create a GitHub OAuth token to go over the API rate limit Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+ip-172-31-8-231+2015-10-05+0250 to retrieve a token. It will be stored in "/home/ubuntu/.composer/auth.json" for future use by Composer.

Like the error says, go to the github link provied and create a token. Then copy the token and run:

php composer config --global github-oauth.github.com <TOKEN>

Replace with the token github provides you.

The other workaround for this would be to use php composer.phar install --prefer-source

This will download the source. Just another alternative.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM