{"id":"5660a4f6-8539-4920-8d5f-144f1a92e13c","slug":"pnpm-err-pnpm-outdated-lockfile-cannot-install-539d","url":"https://api.modalhub.ai/r/pnpm-err-pnpm-outdated-lockfile-cannot-install-539d","urls":{"html":"https://api.modalhub.ai/r/pnpm-err-pnpm-outdated-lockfile-cannot-install-539d","md":"https://api.modalhub.ai/r/pnpm-err-pnpm-outdated-lockfile-cannot-install-539d.md","json":"https://api.modalhub.ai/r/pnpm-err-pnpm-outdated-lockfile-cannot-install-539d.json","history":"https://api.modalhub.ai/r/pnpm-err-pnpm-outdated-lockfile-cannot-install-539d/history"},"symptom":"ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with \"frozen-lockfile\" because pnpm-lock.yaml is not up to date with <ROOT>/package.json","command":"pnpm install --frozen-lockfile","exit_code":1,"tool":"pnpm","version":"10.34.9","os":null,"date":"2026-10-28","cause":"pnpm turns frozen-lockfile on in CI and refuses to re-resolve; a dependency in package.json or a lockfile-relevant setting (overrides, patches) changed without regenerating pnpm-lock.yaml","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"command","body":"pnpm install                # locally, with the same pnpm version CI uses\ngit add pnpm-lock.yaml      # commit it together with the package.json change\n# pin that version in package.json (read by corepack): \"packageManager\": \"pnpm@<version>\""},"repro":"none","check":"pnpm install --frozen-lockfile","notes":"In a workspace the path names the stale package (<ROOT>/packages/<name>/package.json). pnpm 11+ also fails in CI on a lockfile written by a newer pnpm major: align the versions instead of regenerating.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"10.34","status":"works"}],"dead_ends":[{"attempt":"delete pnpm-lock.yaml and reinstall","why":"re-resolves every transitive dependency to the newest in-range version, an unreviewed mass upgrade instead of a sync","reports":1},{"attempt":"pnpm install --no-frozen-lockfile in CI","why":"CI resolves the out-of-date entries afresh on every run and the corrected lockfile is never committed, so builds stop being reproducible","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:47.62608Z","updated_at":"2026-10-28T18:26:47.62608Z","last_confirmed_at":null,"ledger":{"first_seq":79,"last_seq":79,"head_hash":"f44177a134121f6312eb9d7f07f56f19153ad5a8abd7c73efe762af349eb72a6"}}
