nodejs版本管理工具n教程

nodejs 版本管理工具 n

安装

使用 npm 安装

npm install -g n

使用 bash 安装

curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
bash n lts

使用 第三方 安装

brew install n
// 或者
curl -L https://git.io/n-install | bash

使用

安装 node

n 12
n 12.16.3  # 最新稳定版
n latest   # 最新发布

卸载 node

n rm 0.9.4 v0.10.0

查看&切换

n

猜你喜欢

转载自www.cnblogs.com/whosmeya/p/12894636.html
今日推荐