通过作曲家安装时,gedmo/doctrine-extensions 要求提供令牌

use*_*736 6 github composer-php doctrine-extensions

是否还有其他人在通过 Composer 安装 gedmo/doctrine-extensions 时遇到问题?

存储库是公开的,所以我不确定为什么说它是私有存储库

Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+computername+2015-09-04+1040 to retrieve a token. It will be stored in "/location/.composer/auth.json" for future use by Composer. Token (hidden):

Jen*_*och 6

简而言之:您正在达到 API 速率限制,因为您没有针对它进行身份验证。

Github API 的速率限制非常低,因此如果您安装大量软件包,它会在某些时候失败并询问您的登录名/密码。

如果您不想向 Composer 提供您的 GitHub 凭据,您可以使用以下过程手动创建令牌:

现在 Composer 应该在不要求身份验证的情况下安装/更新。