Install and activate a Node.js version globally through pnpm.
Section: Environment and Node Runtime
Use a specific Node version
bash
bash
pnpm env use --global 22Explanation
Install and activate a Node.js version globally through pnpm.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Environment and Node Runtime
List installed Node.js versions
Show Node versions installed by pnpm env.
Print binary directory
Show the directory where pnpm-linked binaries live for the current project.
Print node_modules root
Show the root node_modules path for the current project.
CI install with frozen lockfile
Common CI install pattern that refuses lockfile changes.
Patch a dependency
Extract a dependency for local edits before creating a patch.