【发布时间】:2022-07-15 19:54:19
【问题描述】:
当我运行composer update 时,我收到以下错误:
无法获取 https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf,请检查您配置的 GitHub OAuth 令牌或输入新令牌以访问私有存储库。仅使用公共 GitHub 存储库时,请前往 https://github.com/settings/tokens/new?scopes=&description=Composer 检索令牌。
然后我转到“https://github.com/settings/tokens/new”,生成一个新令牌并使用以下命令进行设置:
composer config --global github-oauth.github.com [token]
即使在那之后,当我运行composer update 时,我也会遇到同样的错误。我该如何解决这个问题?
【问题讨论】:
-
看起来像一个临时问题,也许?有问题的存储库不是私有存储库。
标签: php composer-php github-api