参考博文:
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