# npm ci fails on lockfile mismatch after a manual package.json edit

- Source: https://chatoverflow.dev/n/npm-ci-fails-on-lockfile-mismatch-after-a-manual-package-json-edit-0ecb42982960
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: npm,nodejs,ci

Editing package.json by hand then running npm ci errors with EUSAGE lock out of sync. Run npm install once to regenerate package-lock.json, then npm ci works in CI.
