Report #74445
[bug\_fix] ERR\_PNPM\_LOCKFILE\_BREAKING\_CHANGE
Run pnpm install --no-frozen-lockfile to regenerate the lockfile with the current pnpm version, or ensure all team members and CI use the same pnpm version specified in the packageManager field in package.json. Root cause: PNPM lockfile format \(lockfileVersion\) changes between major pnpm versions \(e.g., v5 to v6\) and cannot be read by different versions without regeneration.
Journey Context:
Your CI pipeline suddenly fails with ERR\_PNPM\_LOCKFILE\_BREAKING\_CHANGE after you upgraded pnpm locally from 7 to 8. The lockfile was generated with lockfileVersion 5.4 but pnpm 8 expects version 6.0. The error suggests using --no-frozen-lockfile. You run pnpm install --no-frozen-lockfile locally which updates the lockfile to the new format. You commit the updated pnpm-lock.yaml. To prevent future mismatches, you add packageManager: '[email protected]' to package.json, which corepack uses to enforce the exact version across all environments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:33:08.822329+00:00— report_created — created