Composer usage issues under Windows

Source: Internet
Author: User
Tags oauth

Generally speaking, the installation of composer under Windows is very simple, the following steps can be done! CMD to run the command:

Scenario One: Curl-s Http://getcomposer.org/installer | PHP, if your curl is not available, you can also use the scheme.

Scenario Two: Download software directly to install Https://getcomposer.org/Composer-Setup.exe


Then there is the update problem: Just run the following command under CMD:

PHP Composer.phar self-update


You may then encounter the following issues in the process of updating or executing composer:

1.Could not fetch https://api.github.com/repos/jquery/jquery, enter your github CR
Edentials to go through the API rate limit
The credentials would be a swapped for a OAuth token stored in C:/USERS/IDIOT/APPD
Ata/roaming/composer/auth.json, your password won't be stored
To revoke access to the token you can visit https://github.com/settings/applica
tions
Username:

2.Your GitHub OAuth token for github.com contains invalid characters: ""


The mistake here is because your GitHub token value is invalid or expired and you need to add a token.


Solution :

1. First you need to update to the latest version: PHP Composer.phar self-update

2. Login to GitHub https://github.com/settings/applications "generated a token" to add a new token

3. Run cmd php composer.phar config-g github-oauth.github.com token (token value for you new)


This will solve the problem, haha!

This article is from the "Shows Technology" blog, be sure to keep this source http://wangzhijun.blog.51cto.com/9660708/1639859

Composer usage issues under Windows

Related Article

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.