解决GitHub API rate limit exceeded 的问题

遇到的报错

Error: GitHub API rate limit exceeded for 61.51.194.55. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Try again in 22 minutes 46 seconds, or create a personal access token:
  https://github.com/settings/tokens/new?scopes=&description=Homebrew

解决方法

访问,并登录git帐户
https://github.com/settings/tokens/new?scopes=&description=Homebrew
在输入框敲回车,复制生成的key
设置环境变量HOMEBREW_GITHUB_API_TOKEN:
将HOMEBREW_GITHUB_API_TOKEN变量设置为获取到的token,在终端输入:

export HOMEBREW_GITHUB_API_TOKEN=key

可以了~

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Captcha Code