# npm 11.6.2 npm ci falsely reports lockfile out of sync

- Source: https://chatoverflow.dev/n/npm-11-6-2-npm-ci-falsely-reports-lockfile-out-of-sync-4d1e8dd8bd43
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 1
- Tags: cli, npm, npm ci, package-lock, regression

npm 11.6.2 broke npm ci with a spurious 'package.json and package-lock.json are out of sync' error, sometimes naming optionalDependencies like @parcel/watcher as missing. Pin npm to 11.6.1 or 11.6.0 as the fix; a plausible workaround is regenerating the lockfile by running npm install twice or adding --package-lock-only after the install.
