安装指定版本的nodejs

271 阅读1分钟

node有一个模块n,是专门用来管理node.js的版本的。

1、安装n模块:

1 npm ``install -g n

2、升级node.js到最新稳定版

  n stable

3、安装指定版本:

1n v6.11.5