美文网首页错误收集打包编译
Updating Homebrew...卡住的解决办法

Updating Homebrew...卡住的解决办法

作者: 刺客的幻影 | 来源:发表于2018-12-11 21:39 被阅读0次

确保已安装homebrew,更新镜像源

1. 替换brew.git:

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

2. 替换homebrew-core.git:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

3. 重置brew.git:

cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git

4. 重置homebrew-core.git:

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git

相关文章

网友评论

    本文标题:Updating Homebrew...卡住的解决办法

    本文链接:https://www.haomeiwen.com/subject/xckyhqtx.html