npm的镜像替换成淘宝镜像加快node依赖包的安装速度
2017-09-15 本文已影响57人
四月天__
1.得到原本的镜像地址
npm get registry
2.设成淘宝的
npm config set registry http://registry.npm.taobao.org/
2.换成原来的
npm config set registry https://registry.npmjs.org/
1.得到原本的镜像地址
npm get registry
2.设成淘宝的
npm config set registry http://registry.npm.taobao.org/
2.换成原来的
npm config set registry https://registry.npmjs.org/