方提供的homebrew安装命令:ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
然而在实际操作过程中因为科学上网原因,安装会报错:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
以下是某大佬提供的国内版安装脚本,傻瓜式操作即可完成安装:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"