【MAC环境】使用brew install 命令时返回-bash: brew: command not found错误

首次在mac上执行brew install ***  安装应用,返回错误-bash: brew: command not found。

原因:mac系统未预制brew工具,此时需要先安装brew工具,安装步骤如下:

打开mac终端,执行以下命令即可执行:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

注意:执行过程中需输入mac登陆密码,同时安装过程中会提示安装xcode,此时需保证能够正常链接到appstore,否则将会安装失败。

发布了168 篇原创文章 · 获赞 0 · 访问量 7835

猜你喜欢

转载自blog.csdn.net/weixin_42661815/article/details/100692579