笨方法 先检查当前npm的镜像源 npm config get registry 将下包的镜像源切成淘宝的npm镜像源 npm config set registry=https://registry.npm.taobao.org/ 检查切换是否成功 npm config get registry 简单方法 全局安装nrm npm i nrm -g 查看所有可用的镜像源 nrm ls 切换镜像 nrm use taobao