首页 > 技术文章 > Mac系统下安装Homebrew后无法使用brew命令,-bash: brew: command not found

huiAlex 2017-12-05 13:53 原文

使用如下命令:

sudo vim .bash_profile

然后输入以下代码:

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

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

source .bash_profile

这样就可以使用brew命令了

推荐阅读