Skip to content

node版本管理 n

安装

bash
npm install -g n

常用的指令

安装最新版

bash
n lastest

安装稳定版

bash
n stable

安装指定版

bash
n <node-version>

查看node版本,及可以切

bash
n

删除指定版本

bash
n rm <node-version>

用指定版本运行程序

bash
n use <node-version> app.js