切换npm源为淘宝镜像

npm默认的镜像源下载速度很慢,通常切换了淘宝镜像源

1、查看当前使用的npm镜像源

npm config get registry

2、临时使用npm镜像源(使用且仅使用一次)

npm --registry https://registry.npm.taobao.org install xxx

3、切换npm镜像源

npm config set registry https://registry.npm.taobao.org
原文地址:https://www.cnblogs.com/houchen/p/14684718.html