pnpm install --frozen-lockfileCommon CI install pattern that refuses lockfile changes.
CI installs, fetch, production pruning, Node runtime management, patching, and troubleshooting.
Reliable installs for CI pipelines.
pnpm install --frozen-lockfileCommon CI install pattern that refuses lockfile changes.
Fetch packages into the store without linking node_modules; useful in image builds.
pnpm fetchFetch packages into the store without linking node_modules; useful in image builds.
pnpm install --prodInstall only production dependencies.
pnpm prune --prodRemove devDependencies from an existing install.
pnpm install --lockfile-onlyRefresh the lockfile without changing node_modules.
Manage Node.js runtimes and environment context.
pnpm env listShow Node versions installed by pnpm env.
pnpm env use --global 22Install and activate a Node.js version globally through pnpm.
pnpm env remove --global 20.11.1Remove a previously installed Node.js version.
pnpm binShow the directory where pnpm-linked binaries live for the current project.
pnpm rootShow the root node_modules path for the current project.
Patch dependencies and inspect health.
pnpm patch lodash@4.17.21Extract a dependency for local edits before creating a patch.
pnpm patch-commit ./node_modules/.ignored/lodash@4.17.21Create and register a patch after editing an extracted dependency.
pnpm rebuildRe-run dependency build scripts.
pnpm doctorDiagnose common pnpm environment issues.
pnpm install --ignore-scriptsAvoid running package lifecycle scripts during install.
pnpm approve-buildsReview and approve dependencies allowed to run build scripts.
pnpm ignored-buildsShow packages whose build scripts were skipped by policy.