Langsung ke konten utama
Versi: 7.x

pnpm env <cmd>

Mengelola lingkungan Node.js.

Perintah

use

Instal dan menggunakan versi Node.js yang ditentukan

Instal Node.js versi LTS:

pnpm env use --global lts

Instal Node.js v16:

pnpm env use --global 16

Instal Node.js versi pra-rilis:

pnpm env use --global nightly
pnpm env use --global rc
pnpm env use --global 16.0.0-rc.0
pnpm env use --global rc/14

Instal Node.js versi terbaru:

pnpm env use --global latest

Install an LTS version of Node.js using its codename:

pnpm env use --global argon

remove, rm

Added in: v7.10.0

Removes the specified version of Node.JS.

Usage example:

pnpm env remove --global 14.0.0

list, ls

Added in: v7.16.0

List Node.js versions available locally or remotely.

Print locally installed versions:

pnpm env list

Print remotely available Node.js versions:

pnpm env list --remote

Print remotely available Node.js v16 versions:

pnpm env list --remote 16

Opsi

--global, -g

The changes are made systemwide.