各种版本下载
https://nodejs.org/zh-cn/download/releases
配置默认目录
npm config set prefix "D:\opt\nodejs\node_global"
npm config set cache "D:\opt\nodejs\node_global"
使用淘宝镜像:
npm install -g cnpm --registry=https://registry.npm.taobao.org
https://nodejs.org/zh-cn/download/releases
npm config set prefix "D:\opt\nodejs\node_global"
npm config set cache "D:\opt\nodejs\node_global"
npm install -g cnpm --registry=https://registry.npm.taobao.org