国内软件源加速

brew

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

此时可以执行 brew config 命令,查看配置信息:

brew config

Node.js

使用淘宝源

npm config set registry https://registry.npmmirror.com/ --global

恢复

npm config set registry https://registry.npmjs.org/ --global

发表评论