1、查看镜像版本
npm config get registry
yarn config get registry
2、切换镜像
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
3、换回原来的镜像
npm config set registry http://registry.npmjs.org
yarn config set registry https://registry.yarnpkg.com