参考博文:

http://havee.me/mac/2013-12/how-to-install-and-use-homebrew.html

Error: GitHub API rate limit exceeded for ip. See http://developer.github.com/v3/#rate-limiting for details. You may want to create an API token: http://github.com/settings/applications and then set HOMEBREW_GITHUB_API_TOKEN.

说得很明白,点击上述网址,直接generate一个Personal access tokens

然后复制token

1. 启动终端Terminal

2. 进入当前用户的home目录

    输入cd ~

3. 创建.bash_profile

    输入touch .bash_profile

4. 编辑.bash_profile文件

    输入open -e .bash_profile 

if [ -f /usr/local/bin/brew ]; then
    export HOMEBREW_GITHUB_API_TOKEN=xxxxxxxxxx
fi

5. 保存文件,关闭.bash_profile

6. 更新刚配置的环境变量

    输入source .bash_profile

**最后再 . ~/.bash_profile 更新下你的环境变量。

 

Mac中查看PATH环境变量的命令是:

echo $PATH

相关文章:

  • 2021-09-12
  • 2021-08-13
  • 2022-02-27
  • 2022-01-19
  • 2021-08-07
  • 2021-11-12
猜你喜欢
  • 2021-09-12
  • 2021-09-10
  • 2022-02-03
  • 2021-11-14
  • 2022-12-23
  • 2022-02-24
相关资源
相似解决方案