PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 24, 2022

[FIXED] Installing yii2 via composer and it keeps prompting for a password

 January 24, 2022     composer-php, yii2     No comments   

Issue

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"
}

Solution

It may helps you more. Follow the steps:

  1. Create/Sign in into github account.
  2. Go to Profile>>Settings>>Personal access tokens (OR) click on this https://github.com/settings/tokens.
  3. Click on Generate new token
  4. Select the appropriate scopes and click Generate token.
  5. 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...



Answered By - Harishkumar
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing