基础 - 有时要github的token

  • 作者:KK

  • 发表日期:2017.9.1


在安装来自Github的软件包时,会提示你输入一个Token,提示如下:

Could not fetch https://api.github.com/repos/RobinHerbots/jquery.inputmask/contents/bower.json?ref=03e65a2d28159e885e18acee9cae53ac6318372b, 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+localhost.localdomain+2015-05-19+1651
to retrieve a token. It will be stored in "/home/vagrant/.composer/auth.json" for future use by Composer.
Token (hidden): 

要获得这个Token并输入的话,只要进入https://github.com/settings/tokens点击界面上的Generate new token就能生成,然后复制粘贴进来吧