- 查看node安装目录
where node 或者 which node
-
设置cnpm淘宝源 [参考](www.cnblogs.com/doufy/p/107…
-
通过命令(临时修改下载源)
比如下载xxxx组件,npm --registry registry.npm.taobao.org install xxxx
-
通过命令(永久使用,设置registry)
npm config set registry registry.npm.taobao.org
可通过npm config get registry查看是否设置成功
-
ps:
全局安装cnpm:npm install -g cnpm --registry=registry.npm.taobao.org