安装指定版本的nodejs

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

1、安装n模块:

npm install -g n

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

  n stable

3、安装指定版本:

n v6.11.5
 

posted @ 2018-01-22 12:21  安云  阅读(39355)  评论(0编辑  收藏  举报