What should I do if I need token when installing a Composer on github? githubtoken

Source: Internet
Author: User

What should I do if I need token when installing a Composer on github? githubtoken

 

When yii2 is installed, the following error occurs:

Could not fetch https://api.github.com/repos/jquery/sizzle/contents/bower.json?ref=917b312f1d0777d3cccf6ceace2621bb9e8009b2, 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+JIAN-PC+2017-05-11+1400
to retrieve a token. It will be stored in “C:/Users/Administrator/AppData/Roaming/Composer/auth.json” for future use by Composer.

At this time, you only need to enter a token. Where can I create or retrieve this token? At https://github.com/settings/tokens/, if there is no account number, register a githubaccount number first. This is github's measure to control the download speed and prevent resource abuse.

Step 1: Create a new token

Create a token on github

Click Generate new token (Initialize new token) in the upper right corner ).

Step 2: Enter the token information

 

Enter the token information

Write the Token description, that is, the description of the token, so that you can check the token next time to find out where the token is used and when it is created. You can check the Select scopes option. If you check the Select scopes option, the speed is not limited. Click Generate token at the bottom to get the authorized token.

Part 3: Enter the obtained token to the location where the token needs to be entered, and re-execute the composer installation and execution to be executed.

My blog address: What should I do if I need token when installing something in Composer?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.