npm默认的镜像源下载速度很慢,通常切换了淘宝镜像源
npm config get registry
npm --registry https://registry.npm.taobao.org install xxx
npm config set registry https://registry.npm.taobao.org
切换npm源为淘宝镜像
原文:https://www.cnblogs.com/houchen/p/14684718.html