-
- 根据自己需要下载相应的版本
-
环境配置(可跳过)
- 全局模块路径配置
npm config set prefix "your_global_path"
- 全局模块路径配置
npm config set cache "your_cache_path"
- 仓库配置
npm config set registry "https://registry.npmjs.org/"
- 环境配置信息查看
npm config ls -l
-
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
来源:oschina
链接:https://my.oschina.net/iqidan91/blog/3212652