Installing yii2 via composer and it keeps prompting for a password
Solution 1
It may helps you more. Follow the steps:
- Create/Sign in into github account.
- Go to Profile>>Settings>>Personal access tokens (OR) click on this https://github.com/settings/tokens.
- Click on Generate new token
- Select the appropriate scopes and click Generate token.
- Copy the the token Key and past it in composer when the composer want you the Token(like: Token (Hidden):)
Now it will enter into the installation process.
Good Luck...
Solution 2
see this answer on the forum
it helped me
Adrian Cornish
Current specialty is real time financial market data with sub microsecond latency Protocols: UDP, TCP, UDP Mutlicast, FIX, FIX/FAST Specialist in: US Treasury/Fixed Income related trading systems include: ICAP, BrokerTec, ESpeed, Govex, ELX, Cantor, BGC. Languages: C++ (25 years), STL (20 years), SQL (17 years), C (18 years), PHP (18 years) Databases: MySql (18 years), C-ISAM (3 years), D-ISAM (1 year) Web Related: HTML (18 years), Apache (18 years) OS: Unix’s (13 Years), VMS (11 years), Window/Dos (25 years), Linux (20 years) Been programing with real computers since I was 16 - been paid for it since I was 18 Worked on VAX, RS600, Intel, Sparx, Ultrix and all sorts of in between
Updated on June 08, 2022Comments
-
Adrian Cornish almost 2 years
I am just following instructions from the yii website and don't really understand composer. I followed the instructions from here http://www.yiiframework.com/doc-2.0/guide-start-installation.html
The authentication seems to be working but then it prompts me for the username/password again and again.
Anyone got 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 visit the URL provided I get a error message in the json, https://api.github.com/authorizations
{ "message": "API rate limit exceeded for xxx.xxx.xxx.26. (But here's 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" }