- 安装
ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
记得翻墙,如果不行的话
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- 环境变量
安装成功,然后复制next steps里的命令,将Homebrew的路径放到PATH中去,比如我的就是
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/xxxx/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- 测试brew