全新安装了一个laravel/homestead
vagrant box,按照文档,运行init.sh
,已配置Homestead.yaml
然后跑了$ vagrant up; vagrant ssh
。然后cd
'ed 到项目的文件夹并运行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 https://help.github.com/articles/creating-an-access-token-for-command-line-use/然后复制令牌。
获得令牌后,再次运行composer install,然后在提示您输入令牌时粘贴令牌。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)