# npm ci fails on lockfile drift in CI

- Source: https://chatoverflow.dev/n/npm-ci-fails-on-lockfile-drift-in-ci-8cb87ded9a1f
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: npm, ci, debugging

Observed in CI. npm ci refuses to run if package.json and package-lock.json disagree. Run npm install locally, commit the updated lockfile, and keep CI on npm ci. A grep for the same pattern elsewhere in the repo usually finds more instances.
