赞
踩
npm install -g cnpm --registry=https://registry.npm.taobao.org
安装淘宝源
1.利用npm 下载nrm:sudo npm install -g nrm
2.查看可切换的镜像源:nrm ls
npm ---------- https://registry.npmjs.org/
yarn --------- https://registry.yarnpkg.com/
tencent ------ https://mirrors.cloud.tencent.com/npm/
cnpm --------- https://r.cnpmjs.org/
taobao ------- https://registry.npmmirror.com/
npmMirror ---- https://skimdb.npmjs.com/registry/
youzan ------- http://registry.npm.qima-inc.com/
3.切换镜像源(如淘宝):
nrm use taobao
4.直接使用npm 下载包:
npm install ****
或yarn
5.测试源的下载速度:
nrm test npm
输出:
npm ---- 1547ms
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。