Mac系统下安装Homebrew后无法使用brew命令,-bash: brew: command not found

使用如下命令:

sudo vim .bash_profile

然后输入以下代码:

export PATH=/usr/local/bin:$PATH

再使用以下命令使配置生效:

source .bash_profile

这样就可以使用brew命令了

原文地址:https://www.cnblogs.com/huiAlex/p/7986568.html