pnpm env <cmd>
Node.js 환경을 관리합니다.
명령어
use
Install and use the specified version of Node.js
Install the LTS version of Node.js:
pnpm env use --global lts
Install Node.js v16:
pnpm env use --global 16
Install a prerelease version of Node.js:
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
Install the latest version of Node.js:
pnpm env use --global latest
Install an LTS version of Node.js using its codename:
pnpm env use --global argon
remove, rm
Removes the specified version of Node.JS.
사용 예:
pnpm env remove --global 14.0.0
list, ls
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
옵션
--global, -g
변경 사항은 시스템 전체에 적용됩니다.