Ruby (gem)
Go
NodeJS (npm)
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
macOS (Homebrew)
这里推荐使用中科院的国内镜像
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
// 替换 cask 软件仓库
cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
// 替换 Bottles 源
// 添加环境变量
export HOMEBREW_BOTTLE_DOMAIN=[https://mirrors.ustc.edu.cn/homebrew-bottles](https://mirrors.ustc.edu.cn/homebrew-bottles rel=)
如何添加环境变量请参考我的如何设置环境变量
检查是否成功
brew update
brew doctor