Mac终端: brew command not found 解决方法

1811人浏览 / 0人评论 / 添加收藏

错误提示:
zsh: command not found: brew

命令安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

1.运行命令,输入序列号时 直接回车


2.输入大写字母:Y


3.输入mac密码,运行脚本


4.等待安装完成即可(若报错看下文)

 

 

5. 安装完成后,最后一步一定要执行一下生效命令:source /Users/wanglixin/.zprofile

 

这样就大功告成

全部评论