homestead条款中使用GitHub

homestead条款中使用GitHub

本文介绍了作曲家在新鲜的laravel / homestead条款中使用GitHub OAuth令牌时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档,Fresh安装了一个 laravel / homestead vagrant box,运行 init.sh ,配置 Homestead.yaml 并跑过 $ vagrant up; vagrant ssh 。之后 cd '编辑到项目文件夹并运行作曲家安装



它会等待标记,并显示以下消息:

 使用包信息加载composer存储库
从锁定文件安装依赖项(包括require-dev)
- 安装sebastian / diff(1.3.0)
下载:正在连接...
可以不要抓取https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3,请创建一个GitHub OAuth令牌以超过API速率限制
前往https://github.com/settings /令牌/新?范围=回购&描述=作曲家+ +宅基地+ 2015-08-01 + 2140
取回代币。它将被存储在/home/vagrant/.composer/auth.json中供Composer将来使用。
令牌(隐藏):

我已经使用 laravel / homestead 之前,我从来没有做过任何这些,这是一些未记录的新功能或错误,或者我做错了什么?

$ b $你需要创建一个GitHub帐户,如果你还没有帐户,然后按照指示,然后复制令牌。



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


Fresh installed a laravel/homestead vagrant box, as per docs, run the init.sh, configured Homestead.yaml and ran $ vagrant up; vagrant ssh. Afterwards cd'ed to project's folder and ran composer install.

It hangs waiting for a token with the following message

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):

I have used laravel/homestead before, and I have never had to do any of these, is this some undocumented new feature or a bug or did I do something wrong?

解决方案

You'll need to create a GitHub account if you don't already have one and then follow the instruction here and then copy the token.

Once you've got your token, run composer install again and then paste the token in when it prompts you for it.

这篇关于作曲家在新鲜的laravel / homestead条款中使用GitHub OAuth令牌时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 02:11