下载
node.js官网 根据自己的系统下载最新Windows安装程序(msi)
安装
这里我的安装路径为 E:\nodejs\
安装完成后,会自动将 node 添加到系统环境变量中去
npm -v #查看当前版本号
更改原有环境变量
1)配置npm的全局模块的存放路径以及cache的路径
在 E 盘 nodejs 目录下新建 node_global、node_cache文件夹
npm config set prefix "E:\nodejs\node_global"
npm config set cache "E:\nodejs\node_cache"
2 ) 在系统环境变量添加系统变量 NODE_PATH
&#x