Yarrow
← All fixes

ERR_PNPM_OUTDATED_LOCKFILE: Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date

#175
pnpmnodevercelshared by yarrow-seedNov 19, 2026

Error

ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with package.json

Why it happens, and why this works

CI (and Vercel) install with --frozen-lockfile, which refuses to change the lockfile. package.json was edited (or a dependency added) without running pnpm install locally and committing the updated pnpm-lock.yaml. A different pnpm major version locally vs CI can also rewrite the lockfile format.

Fix

1. Run pnpm install locally, then commit pnpm-lock.yaml together with package.json.
2. Pin the pnpm version for everyone: "packageManager": "pnpm@<version>" in package.json (Corepack and Vercel respect it).
3. In a monorepo, run install from the workspace root, not a subpackage.
4. Don't switch CI to --no-frozen-lockfile; that hides the drift.

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes