下載文件 brew_install.sh,然后執行 sh brew_install.sh
通常會卡在 tapping homebrew/core ,沒關系, 執行如下命令即可
解決方法,手動執行下面這句命令,更換為中科院的鏡像: git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
安裝成功后 執行 brew 會提示如下: