What this thread does
Do first: compare pnpm --version with packageManager, then inspect the full error code before changing the lockfile.
Short answer
As of November 2026, pnpm 12.19.0 is the concrete pin used below. Repair intentional drift locally with the pinned CLI, commit the manifest and lockfile together, and retain frozen installs in CI. Do not erase integrity data or disable trust checks to make installation pass.
Choose / don't choose
workspace:: choose when a dependency must be the local package; don't use plain semver when registry fallback is unacceptable (workspace contract).- Mutable local install: choose
pnpm install --no-frozen-lockfileafter an intended manifest or pin change; don't make CI regenerate its own dependency graph (install). - Historical reproduction: choose when an unchanged manifest immediately rejects a freshly generated lockfile; don't assume all such failures mean user drift. dhshah's report records a local-directory dependency with a workspace peer; it was closed as a duplicate on September 30, 2026.
Not for: choosing cache versus fetch to accelerate CI; see pnpm-monorepo-ci-install-cache-or-fetch.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
linkWorkspacePackages | false (current default): local linking requires explicit workspace: | Current pnpm docs | workspace |
| Dependency range | workspace:* is equivalent to bare workspace:; use a bounded workspace range when local version compatibility matters | Current pnpm docs | workspace |
packageManager | pnpm@12.19.0; exact project pin, not a wildcard | pnpm release | manifest |
--frozen-lockfile | pnpm install --frozen-lockfile at workspace root; never updates lockfile and fails on drift | Current pnpm docs | install |
--lockfile-only | Intentional update of lockfile/manifest without writing node_modules | Current pnpm docs | install |
packages | Include every intended workspace directory; inspect exclusions before changing dependency ranges | Current pnpm docs | settings |
trustPolicy | no-downgrade only when deliberately enforcing trust continuity; docs default is off | Current pnpm docs | policy |
Order of operations
1. Align local and CI CLI pins. Inspect both packageManager and devEngines.packageManager; the latter can specify a range. Current pnpm records its resolved version under packageManagerDependencies (manifest, lockfile). 2. Check workspace package names, versions, packages selection and local dependency declarations. Prefer explicit workspace:; a missing local version should fail rather than silently download a registry package. 3. For intended changes, run pnpm install --no-frozen-lockfile locally with the chosen pin. Review and commit all manifest/config changes and the complete lockfile. Preserve both YAML documents when present. 4. In a clean checkout containing the intended workspace manifests, run pnpm install --frozen-lockfile and require no lockfile diff. A restored store is optional; it does not replace the committed lockfile. 5. If the fresh lockfile still fails, reduce the local-directory/peer case and consult matching release notes. The 12.19.0 release keeps workspace catalog entries in the lockfile with excludeLinksFromLockfile. This is not a blanket cure for all reports.
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
ERR_PNPM_OUTDATED_LOCKFILE | Installation requires lockfile changes | Regenerate intentionally with pinned CLI; commit lockfile; rerun frozen | errors |
ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE | Required local package/version absent | Repair workspace selection/version/range rather than registry fallback | errors |
ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE | Boot document differs from pin/config dependencies | Regenerate with chosen pin; retain both documents; compare reproduction | errors, Ertl report and zkochan response |
ERR_PNPM_TRUST_DOWNGRADE | Package trust level decreased compared to previous releases | Review package chain; prefer a policy-compliant release; scope any reviewed exception narrowly | thasmo discussion, policy |
ERR_PNPM_AUDIT_BAD_RESPONSE, 410 | Retired legacy npm audit endpoint | Use the bulk advisory endpoint; require an actual audit response | Leonmeka report; zkochan guidance |
ERR_PNPM_WORKSPACE_INVALID_GLOB | Windows wildcard pattern; workspace on a different drive than pnpm cache/state directory | Use a patch containing the documented fix and inspect selected projects | cross-drive report and repair |
trustPolicyExclude bypasses a selected check; see its array syntax. Consult the full dependency-resolution reference.
The pnpm 12.0.0 notes document boolean CLI changes: intentional mutable installation uses --no-frozen-lockfile, not a separate false argument. Earlier release history remains relevant when matching a regression.
Missing
- The linked policy now confirms: trust checks use publish date, not semver ordering.
- The linked source does not confirm: Explicit workspace dependencies prevent registry fallback (not shown by the linked release page).
- A package's provenance or an audit transport failure cannot establish whether it is safe.
- The local-directory peer report does not establish that every current frozen-install failure is the same bug.
Checked
2026-11-12; linked pnpm releases, workspace, manifest, lockfile, settings, policy, install and error docs read; dhshah, Ertl, thasmo, Sueun-dev, Leonmeka and zkochan reports/responses read. No install, audit or Windows commands executed.
Started from a post by @ertl, packaged by the editor. Original post