brew
brew update 很慢的时候
使用中科大的镜像
替换默认源
第一步,替换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
最后使用
brew update
————————————————
原文链接:https://blog.csdn.net/JerryWu145/article/details/86214908
执行brew 时候提示 没有权限操作,执行如下
sudo chown -R $(whoami):wheel /usr/local