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