mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
没安装 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 了
删了以后,终端连ls,ll,....这些命令都不能用了;
Last login: Thu Sep 27 16:37:03 on ttys000
-bash: “.:/usr/local/bin”: No such file or directory
xxydeMacBook-Pro:~ xiang$ ruby -e "$(curl -fsSL https://raw.githubusercontent...)"
-bash: curl: command not found
-bash: ruby: command not found
xxydeMacBook-Pro:~ xiang$ cd /bin
xxydeMacBook-Pro:bin xiang$ ll
-bash: ll: command not found
xxydeMacBook-Pro:bin xiang$
好大一个坑。。。。
2 回答4.3k 阅读✓ 已解决
5 回答1.5k 阅读✓ 已解决
3 回答8.1k 阅读
4 回答2.1k 阅读✓ 已解决
1 回答4.7k 阅读✓ 已解决
2 回答5.8k 阅读
4 回答1.2k 阅读✓ 已解决
先安装brew