Macbook brew 安裝軟件 一直updating Homebrew

在用brew安裝新的軟件的時候一直出現:git

Updating Homebrew...

主要是由於它試圖在鏈接國外的源,bash

改爲國內的源就行了:url

#替換brew.git: 
cd "$(brew --repo)" 
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git 
#替換homebrew-core.git: 
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git 
相關文章
相關標籤/搜索