扫码关注官方订阅号
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 了
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
先安装brew
没安装
Homebrewbash 下执行
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"如果出现 brew not found :
然后重新安装 brew 就 ok 了