首页 > 系统服务 > 详细

mac--“-bash: brew: command not found”,怎么解决?

时间:2019-11-19 22:52:00      阅读:1170      评论:0      收藏:0      [点我收藏+]

报错

“-bash: brew: command not found”

执行下面命令,安装HomeBrew

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

此时报错:

Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Library/Taps/homebrew/homebrew-core --config core.autocrlf=false --depth=1 -q
Error: Failure while executing: /usr/local/bin/brew tap homebrew/core -q

 

依次执行下面两行命令即可成功解决

1、sudo chown -R apple:staff *

2、brew doctor

命令执行完之后HomeBrew也就安装好了

 

好了,小伙伴们,可以开始你们的操作啦

brew install xxx           安装xxx

brew uninstall xxx       卸载xxx

brew update  xxx         更新xxx

brew doctor                 修复brew

 

mac--“-bash: brew: command not found”,怎么解决?

原文:https://www.cnblogs.com/lutt/p/11892704.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!