查看当前镜像
npm config get registry
切换陶宝镜像源
npm config set registry https://registry.npmmirror.com/
验证npm镜像源是否切换成功
npm config get registry
如果返回的地址是https://registry.npmmirror.com/
,那么说明你已经成功切换到淘宝的npm镜像源了。
npm config get registry
npm config set registry https://registry.npmmirror.com/
npm config get registry
如果返回的地址是https://registry.npmmirror.com/
,那么说明你已经成功切换到淘宝的npm镜像源了。