cnpm config get registry 3.修改当前的镜像源为淘宝镜像源 cnpm config set registry https://registry.npm.taobao.org 修改为官方镜像 cnpm config set registry https://registry.npmjs.org/ 4.修改完后再次通过命令2查看