/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/usr/local/bin不在PATH中
找到解决方式。其实解决这个问题真的很简单。以下:
sudo vim .bash_profile
添加:
保存,source .bash_profile使配置修改生效。
从新启动终端 再次使用brew 命令就ok了。