全局安装n
npm install -g n
1.升级到最新稳定版
n stable
2.升级到最新版
n lastest
3.升级到定制版
n v7.10.0
4.切换使用版本
n 7.10.0
5. 删除指定版本
n rm 7.10.0
6.用指定版本执行脚本
n use 7.10.0 some.js
node 版本管理工具n
原文:https://www.cnblogs.com/misswho/p/10024889.html