mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
ringa_lee
先安裝brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
沒安裝 Homebrew
Homebrew
bash 下執行 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如果出現 brew not found :
sudo find / -name brew # 查看是否存在 brew, 如果不存在就删除下述两个文件 rm -rf /usr/local/Cellar rm -rf /usr/local/.git
然後重新安裝 brew 就 ok 了
先安裝brew
沒安裝
Homebrew
bash 下執行
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如果出現 brew not found :
然後重新安裝 brew 就 ok 了