查看当前镜像源
npm config get registry
切换镜像源
// 选择其一即可
npm config set registry https://registry.npmmirror.com
npm config set registry https://registry.npm.taobao.org
默认镜像源
npm config set registry https://registry.npmjs.org
查看当前镜像源
npm config get registry
切换镜像源
// 选择其一即可
npm config set registry https://registry.npmmirror.com
npm config set registry https://registry.npm.taobao.org
默认镜像源
npm config set registry https://registry.npmjs.org