1.安装brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2.选择镜像
3.配置环境
echo "export PATH=$PATH:/opt/homebrew/bin" >> ~/.zprofile
source ~/.zprofile
4.出现fatal
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask