解决brew install慢的问题

然后需要关掉终端,进入/user/local/Homebrew/Library/文件夹下,删除Taps文件夹,执行以下命令:
 
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

然后执行以下命令即可:

cd $(brew --repo)

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

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

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

  

posted @ 2020-12-24 13:22  做人如水,做事如山  阅读(1254)  评论(1编辑  收藏  举报