brew如果不換成國內源,安裝軟件時候可能會出問題,不是安裝不了就是速度很慢,所以使用它,更換國內游是比較好的選擇!
我更換的是清華大學開源軟件鏡像站,打開shell窗口,依次執行下面命令:
cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git brew update
全部執行完畢后,就更換成了清華大學的源了,這時,你再試一試安裝軟件!
參考:
