原命令:git clone https://github.com/xxx 替换为:git clone https://github.com.cnpmjs.org/xxx
换成阿里镜像源:npm config set registry https://registry.npm.taobao.org 再次执行:npm install