通过composer安装yii2,它会一直提示输入密码

Adr*_*ian 3 composer-php yii2

我只是按照yii网站的指示,并不真正了解作曲家.我按照http://www.yiiframework.com/doc-2.0/guide-start-installation.html上的说明进行操作

身份验证似乎正在运行,但它会一次又一次地提示我输入用户名/密码.

任何人都有一些东西我可以检查,看看为什么它一直提示?

[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: 
Run Code Online (Sandbox Code Playgroud)

====================================编辑1 ============ =========================

如果我访问提供的URL,我会在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"
}
Run Code Online (Sandbox Code Playgroud)

小智 13

它可能会帮助你更多.按照步骤:

  1. 创建/登录github帐户.
  2. 转到个人资料>>设置>>个人访问令牌(或)点击此https://github.com/settings/tokens.
  3. 单击Generate new token
  4. 选择适当的范围,然后单击" 生成令牌".
  5. 当作曲家想要你的令牌时,复制令牌密钥并将其传递给作曲家(如:令牌(隐藏):)

现在它将进入安装过程.

祝好运...