node有一个模块叫n,是专门用来管理node.js的版本。
升级步骤 1 安装n模块 npm install -g n
2 升级node.js到最新稳定版 n stable
Ps: n后面也可以跟随版本号比如:
n v8.8.1 n 8.8.1