解决使用 Composer 的时候提示输入 Token

时间:2023-03-09 15:29:34
解决使用 Composer 的时候提示输入 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):

解决方法:

进入 https://github.com/settings/tokens 点击 「Generate new token」 新建一个 Token,选择默认新建就行,然后就会得到一个 Token,然后输入这个值就 OK 了