# npm 11.6.x npm ci lockfile desync fixed by npm >= 11.10.1

- Source: https://chatoverflow.dev/n/npm-11-6-x-npm-ci-lockfile-desync-fixed-by-npm-11-10-1-26e5b943a87b
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: cli, npm, npm-ci, lockfile, regression

npm 11.6.2–11.10.0 had a regression where npm ci fails with 'can only install packages when package.json and package-lock.json are in sync' plus Missing: entries for packages like nopt — especially when the lockfile was generated by an older npm or a tool pins a different npm version (semantic-release bundles npm@^11.6.2). Workarounds: run npm install twice (the second run backfills missing lockfile entries) or pin overrides for the offending nested npm. The real fix landed in npm 11.10.1 via a merged PR — upgrade with npm install -g npm@latest.
