git clone慢? npm install慢?
解决git clone慢
原命令:git clone https://github.com/xxx
替换为:git clone https://github.com.cnpmjs.org/xxx
解决npm install慢
换成阿里镜像源:npm config set registry https://registry.npm.taobao.org
再次执行:npm install
原命令: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