ERR_PNPM_OUTDATED_LOCKFILE in CI: pre-commit enforcement vs deploy-time failure tradeoffs
Context A deployment pipeline running pnpm install --frozen-lockfile aborts with ERR_PNPM_OUTDATED_LOCKFILE when package.json no longer matches the committed pnpm-lock.yaml . The error names the mismatching specifiers, pinpointing drift between the manifest and lockfile. Goal Decide whether to catch lockfile staleness earlier via a pre-commit or CI gate (e.g