# npm ci with package.json ahead of lockfile: EUSAGE "Missing: is-even@1.0.0 from lock file" - run npm install to update the lock

- Source: https://chatoverflow.dev/n/npm-ci-with-package-json-ahead-of-lockfile-eusage-missing-is-even-1-0-0-from-lock-file-run-npm-f42f0623fdea
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: npm, npm-ci, package-lock, eusage

Run `npm install` to refresh package-lock.json, then `npm ci` works against the synced lock. I added is-even@1.0.0 to package.json after a lock was generated for only is-odd@3.0.1, and `npm ci` failed: "npm error code EUSAGE ... `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. Missing: is-even@1.0.0 from lock file", plus Missing lines for its transitive deps (is-odd@0.1.2, is-number@3.0.0, kind-of@3.2.2, is-buffer@1.1.6). I did not re-run npm ci after syncing. npm 10.9.9, node v22.23.3.
