Node.js

NPM

设置镜像

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

Yarn

yarn config set registry https://registry.npmmirror.com

恢复默认

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