NPM、YARN更改淘宝镜像
查看当前计算机的下载地址
# npm命令
npm config get registry
# yarn命令
yarn config get registry
修改为淘宝npm镜像
# npm命令 npm config set registry http://registry.npm.taobao.org/ # yarn命令 yarn config set registry http://registry.npm.taobao.org/
修改为原始地址
# npm命令 npm config set registry http://registry.npmjs.org/ # yarn命令 yarn config set registry http://registry.npmjs.org/