南京做网站价格,制作图片在线,湖南宏点文化传媒有限公司,页面模板发布别人能看到吗在国内,使用brew极慢. 因为它需要访问国外的一些服务器.
解决方法是使用国内的镜像站.
如果是首次安装:
curl https://raw.githubusercontent.com/Homebrew/install/master/install.sh install-brew.sh
然后,在下载的文件中, 修改BREW_REPO为:
BREW_REPOhttps…在国内,使用brew极慢. 因为它需要访问国外的一些服务器.
解决方法是使用国内的镜像站.
如果是首次安装:
curl https://raw.githubusercontent.com/Homebrew/install/master/install.sh install-brew.sh
然后,在下载的文件中, 修改BREW_REPO为:
BREW_REPOhttps://mirrors.ustc.edu.cn/brew.git
最后, 运行:
HOMEBREW_CORE_GIT_REMOTEhttps://mirrors.ustc.edu.cn/homebrew-core.git bash install-brew.sh
如果是已经安装了brew, 可以这样替换镜像站: cd $(brew --repo)
git remote set-url origin https://mirrors.ustc.edu.cn/brew.gitecho export HOMEBREW_BOTTLE_DOMAINhttps://mirrors.ustc.edu.cn/homebrew-bottles ~/.bash_profile
source ~/.bash_profilecd $(brew --repo)/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git 替换后, 就可以正常使用brew了. 参考这篇文章 》 Mac解决brew慢的问题添加国内源