【问题标题】:gedmo/doctrine-extensions asking for a token when installing via composer通过作曲家安装时,gedmo/doctrine-extensions 要求提供令牌
【发布时间】:2015-11-30 12:26:04
【问题描述】:

还有其他人在通过 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):

【问题讨论】:

    标签: github composer-php doctrine-extensions


    【解决方案1】:

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

    Github API 的速率限制非常低,因此如果您安装大量软件包,它有时会失败并要求您输入登录名/密码。

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

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

    【讨论】:

      【解决方案2】:

      git 安装你的系统

      关闭 cmd(命令提示符)

      【讨论】:

      • 你能解释一下它的作用以及为什么它应该起作用吗?
      猜你喜欢
      • 2017-04-07
      • 1970-01-01
      • 2014-10-28
      • 1970-01-01
      • 2013-12-25
      • 2013-07-10
      • 1970-01-01
      • 2016-02-21
      • 2018-02-13
      相关资源
      最近更新 更多