根据文档,重新安装了laravel/homestead流浪者框,运行init.sh,配置了Homestead.yaml并运行了$ vagrant up; vagrant ssh。之后,将cd添加到项目的文件夹并运行composer install

它挂起等待token并显示以下消息

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing sebastian/diff (1.3.0)
Downloading: Connecting...
Could not fetch https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+homestead+2015-08-01+2140
to retrieve a token. It will be stored in "/home/vagrant/.composer/auth.json" for future use by Composer.
Token (hidden):


我以前使用过laravel/homestead,而我从来没有做过任何事情,这是一些未记录的新功能还是一个错误,或者我做错了什么?

最佳答案

如果您还没有一个GitHub帐户,则需要创建一个,然后按照here指令进行操作,然后复制令牌。

获得令牌后,再次运行composer install,然后在提示您输入令牌时将其粘贴。

关于github - 新鲜的laravel/homestead提供中的GitHub OAuth token 出现Composer错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31766546/

10-14 03:08