查看当前的下包镜像源
npm config get registry
将下包的镜像源切换为淘宝镜像源
npm config set registry=https://registry.npmmirror.com
检查成功没,只要执行上面npm config get registry查看下就可以了
使用nrm管理镜像源
安装
npm i nrm -g
查看
nrm ls
切换
nrm use taobao
查看当前的下包镜像源
npm config get registry
将下包的镜像源切换为淘宝镜像源
npm config set registry=https://registry.npmmirror.com
检查成功没,只要执行上面npm config get registry查看下就可以了
使用nrm管理镜像源
安装
npm i nrm -g
查看
nrm ls
切换
nrm use taobao