HomeBrew速度慢,或下载不了报错

HomeBrew速度慢,或者干脆下载不了

推荐去最下面的清华镜像看一看

原文链接

总结了几条命令

cd "$(brew --repo)"

git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc

source ~/.zshrc

测试命令

  • brew update --verbose

其它源(mirror)

清华镜像

posted @ 2021-04-09 00:02  NorseLZJ  阅读(117)  评论(0编辑  收藏  举报