Installing yii2 via composer and it keeps asking for password
I am just following instructions from yii site and don't understand composer. I followed instructions from here http://www.yiiframework.com/doc-2.0/guide-start-installation.html
Authentication seems to work, but then it prompts for username / password over and over again.
Does anyone have some things I can check to see why it keeps prompting?
[root@dndbox html]# composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic
Installing yiisoft/yii2-app-basic (dev-master b528289495bf9721d2b8c628d69caad42e45b0ce)
- Installing yiisoft/yii2-app-basic (dev-master master)
Downloading: connection...
Could not fetch https://api.github.com/repos/yiisoft/yii2-app-basic/zipball/b528289495bf9721d2b8c628d69caad42e45b0ce, enter your GitHub credentials to go over the API rate limit
The credentials will be swapped for an OAuth token stored in /root/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: *.com
Password:
An existing OAuth token for Composer is present and will be reused
Could not fetch https://api.github.com/authorizations, enter your GitHub credentials to go over the API rate limit
The credentials will be swapped for an OAuth token stored in /root/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: *.com
Password:
An existing OAuth token for Composer is present and will be reused
Could not fetch https://api.github.com/authorizations, enter your GitHub credentials to go over the API rate limit
The credentials will be swapped for an OAuth token stored in /root/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username:
============================= EDIT 1 ========== =========== =================
If I find the url I get an error in json, https://api.github.com/authorizations
{
"message": "API rate limit exceeded for xxx.xxx.xxx.26. (But here the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
"documentation_url": "https://developer.github.com/v3/#rate-limiting"
}
+3
source to share
3 answers
This might help you more. Follow these steps:
- Create / login to github account.
- Go to Profile β Settings β Personal resource access sheets (OR) click on https://github.com/settings/tokens .
- Click Create New Token
- Select the appropriate areas and click Create Token .
- Copy the token key and pass it in composer when composer wants you to use Token (ex: Token (Hidden) :)
It will now go into the installation process.
Luck...
+13
source to share
- Create a Github account.
- Go to https://github.com/s...gs/applications and remove your previous token generated during yii2 installation
- Create a new token.
- Run this: configer-g gitub-oauth.github.com
- Please try again with yii2 installation.
-1
source to share