安装指定版本的nodejs node有一个模块n,是专门用来管理node.js的版本的。 1、安装n模块: npm install -g n 2、升级node.js到最新稳定版 n stable 3、安装指定版本: n v6.11.5