Show the root node_modules path for the current project.
Section: Environment and Node Runtime
Print node_modules root
bash
bash
pnpm rootExplanation
Show the root node_modules path for the current project.
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
Print binary directory
Show the directory where pnpm-linked binaries live for the current project.
List installed Node.js versions
Show Node versions installed by pnpm env.
Use a specific Node version
Install and activate a Node.js version globally through pnpm.
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.