如果你没有添加 GitHub 密钥的话,composer update 会提示你登录:
[cc lang=”php”]
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):
[/cc]
解决办法就是:
进入 https://github.com/settings/tokens 点击 「Generate new token」 新建一个 Token,选择默认新建就行,然后就会得到一个 Token,然后输入这个值就 OK 了。




![[开源推荐] Yii2开发的简单日程管理后台](https://www.viphper.com/wp-content/uploads/2022/12/2626c80728cab06-300x200.png)
![[开源推荐] yii2-cdn 支持七牛、网易云、腾讯云、阿里云的cdn](https://www.viphper.com/wp-content/uploads/2022/12/4c53b2a47e5cd5f-300x200.jpeg)
![[开源推荐] 适用于yii2的支付扩展包,支持支付宝、微信、银联支付](https://www.viphper.com/wp-content/uploads/2022/12/3694aa5b10f1dab-300x200.jpeg)
![[开源推荐] 基于yii2的restful接口自动生成在线文档](https://www.viphper.com/wp-content/uploads/2022/11/1fb1a60a4417ec2-300x200.jpeg)











