换了新电脑要重装应用,发现以前做过的事情又忘记了,留下点记录。
网络要通 ,不通要设置代理。代理的设置方法在我的另一篇
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/' - 简书
$ gem sources --remove https://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew也需要设置代理:
ALL_PROXY=socks5://192.168.192.136:1080 brew install repo
参考 : Homebrew behind proxy ? · Issue #11114 · Homebrew/legacy-homebrew · GitHub
网友评论