用brew一直安装软件时一直提示
Updating Homebrew......
是因为它一直试图连接国外的源,如果有VPN可以打开再重新操作
或者,改成连接国内的源就好了
#替换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