ZDecode
Nodejs

Nvm

优雅地管理多个nodejs版本

1. 下载NVM

2. 使用NVM下载nodejs

nvm install 18

3. 查看版本

nvm ls
  * 22.14.0 (Currently using 64-bit executable)
    20.19.0
    18.20.7
    16.20.2
    14.21.3

4. 切换Node版本

nvm use 14

5. 安装npm全局包

包管理器

npm i -g pnpm yarn bun

工具类

npm i -g @antfu/ni npkill

ts 相关

npm i -g esno typescript tsx

本地服务容器

npm i -g http-server serve

全部

npm i -g pnpm yarn bun @antfu/ni npkill esno typescript tsx http-server serve