pnpm install --fix-lockfile

Category: Node.js & npm/yarn

pnpm install --fix-lockfile

Repair a broken pnpm lockfile

Recomputes entries in pnpm-lock.yaml that no longer match package.json, fixing install errors caused by manual manifest edits or merge conflicts. It only touches what is inconsistent instead of rewriting everything. Run it before filing a bug against pnpm itself.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.