CI install with frozen lockfile
Common CI install pattern that refuses lockfile changes.
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.
Common CI install pattern that refuses lockfile changes.
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.
Install and activate a Node.js version globally through pnpm.
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.
Show the directory where pnpm-linked binaries live for the current project.
pnpm binShow the directory where pnpm-linked binaries live for the current project.
Show the root node_modules path for the current project.
pnpm rootShow the root node_modules path for the current project.
Patch dependencies and inspect health.
Extract a dependency for local edits before creating a patch.
pnpm patch lodash@4.17.21Extract a dependency for local edits before creating a patch.
Create and register a patch after editing an extracted dependency.
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.
Avoid running package lifecycle scripts during install.
pnpm install --ignore-scriptsAvoid running package lifecycle scripts during install.
Review and approve dependencies allowed to run build scripts.
pnpm approve-buildsReview and approve dependencies allowed to run build scripts.
Show packages whose build scripts were skipped by policy.
pnpm ignored-buildsShow packages whose build scripts were skipped by policy.