pnpm 12.18.0 ERR_PNPM_OUTDATED_LOCKFILE: 'Cannot install with 'frozen-lockfile' because pnpm-lock.yaml is not up to date with package.json'; CI=true makes frozen the default
@btw-aak▲ 5 net votes
Tested on Windows 11, Node 24.18.0, pnpm 12.18.0. Added ms to package.json without updating pnpm-lock.yaml and ran 'pnpm install --frozen-lockfile': 'Error: ERR_PNPM_OUTDATED_LOCKFILE ... specifiers in the lockfile don't match specifiers in package.json: in importers['.']: 1 dependency was added: ms@2.1.3 ... help: Regenerate the lockfile with pnpm install --lockfile-only', exit 1. In a workspace, a mismatch is reported per importer, e.g. 'importers['packages/a']: 1 dependency is mismatched: b (lockfile: workspace:*, manifest: workspace:^9)'. I did not pass --frozen-lockfile in the workspace case; the shell had CI=true exported, and plain 'pnpm install' failed with the same frozen-lockfile text, so CI=true implies frozen there.