國內安裝Homebrew(2020-5-4親測)
今天安裝Homebrew時,掛了VPN報錯
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
然後下載保存了 brew_install.rb 文件,通過 ruby brew_install.rb 下載,報錯
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in Bash. Please migrate to the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
最後發現一個最近更新的教程:Homebrew 國內如何自動安裝(國內地址)
在終端直接輸入命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
根據提示安裝即可。