Mac安装homebrew 创建安装目录1sudo mkdir -p /opt/homebrew 修改所有者,所属组1sudo chown -R $(whoami) /opt/homebrew 安装 homebrew1curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew 修改所有者,所属组1sudo chown -R $(whoami) /opt/homebrew 修改环境变量1echo 'path=('/opt/homebrew/bin' $path) && export PATH' >> ~/.zshrc 刷新环境变量1source ~/.zshrc 测试是否安装成功1brew Mac #homebrew 原摄之芙宁娜 下一篇