1.临时使用
npm --registry https://registry.npm.taobao.org install express
2.持久使用
npm config set registry https://registry.npm.taobao.org
验证方式
npm config get registry 或 npm info express
3.通过cnpm使用
npm install -g cnpm --registry=https://registry.npm.taobao.org
本文介绍如何将npm默认源更改为淘宝npm源,包括临时及持久化设置方法,并提供使用cnpm工具的步骤。
13万+

被折叠的 条评论
为什么被折叠?



