pnpm env <cmd>
사용 중단됨
pnpm env는 사용 중단되었습니다. 대신 pnpm runtime을 사용하세요. For example, pnpm env use --global lts becomes pnpm runtime set node lts -g, and pnpm env remove --global <version> becomes pnpm remove -g node.
Node.js 환경을 관리합니다.
Commands#
use#
특정 버전의 Node.js를 설치하고 사용합니다.
Node.js LTS 버전 설치
pnpm env use --global lts
Node.js v16 설치
pnpm env use --global 16
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
최신 버전의 Node.js를 설치합니다.
pnpm env use --global latest
코드명을 사용하여 Node.js LTS 버전 설치:
pnpm env use --global argon
remove, rm#
Removes the specified versions of Node.js.
사용 예:
pnpm env remove --global 14.0.0
pnpm env remove --global 14.0.0 16.2.3
list, ls#
Print the Node.js versions available from the Node.js mirror that match a version range. Without a range, only the newest version is printed.
pnpm env list
Print the available Node.js v16 versions:
pnpm env list 16
옵션#
--global, -g#
변경 사항은 시스템 전체에 적용됩니다. use and remove require this option. Without it, they fail with ERR_PNPM_NOT_IMPLEMENTED_YET.