Homebrew went

国内安装网站: https://gitee.com/cunkai/HomebrewCN

1,问题:提示Add /opt/homebrew/bin 到用户的.zprofile内(若加入.bash_profile下次打开终端brew命令又会找不到)

三步走
1、终端下输入:

sudo vim .zprofile
1
2、随后输入用户密码进入文本,点击i进入编辑模式(做左下角会有INSERT),添加:
export PATH=/usr/local/bin:PATH

3、而后esc退出编辑模式,输入:wq退出并保存文本,终端下输入:

source .zprofile

你可能感兴趣的:(Homebrew went)