pnpm env <cmd>
Node.js 環境を管理します。
危険
pnpm env
does not include the binaries for Corepack. If you want to use Corepack to install other package managers, you need to install it separately (e.g. pnpm add -g corepack
).
コマンド
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