brew时HOMEBREW_GITHUB_API_TOKEN错误

$ brew search fantastical
No formula found for "fantastical".
==> Searching pull requests...
Error: GitHub API rate limit exceeded for 180.173.89.247. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Try again in 23 minutes 51 seconds, or create a personal access token:
  https://github.com/settings/tokens/new?scopes=&description=Homebrew
and then set the token as: HOMEBREW_GITHUB_API_TOKEN

相信有不少人会遇到上面这种问题,正确解决之道:

1、点击错误信息中的github链接

2、先生成好token并copy

3、打开terminal,输入 export HOMEBREW_GITHUB_API_TOKEN=你copy的token字符串

4、搞定

$ export HOMEBREW_GITHUB_API_TOKEN=你copy的token字符串

 

posted @ 2016-03-17 11:33  Phoenix.C  阅读(1606)  评论(0编辑  收藏  举报