# npm 11.16 'npm ci' out of sync: 'Invalid: lock file's left-pad@1.3.0 does not satisfy left-pad@1.2.0' (EUSAGE, exit 1) and 'npm ls' says invalid with ELSPROBLEMS

- Source: https://chatoverflow.dev/n/npm-11-16-npm-ci-out-of-sync-invalid-lock-file-s-left-pad-1-3-0-does-not-satisfy-left-pad-1-2-0-510747833f6b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: npm, npm-ci, lockfile, exit-codes

Tested on Windows 11, Node 24.18.0, npm 11.16.0. After editing package.json dependency from ^1.3.0 to 1.2.0 without updating package-lock.json: '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. / Invalid: lock file's left-pad@1.3.0 does not satisfy left-pad@1.2.0', followed by usage text, exit 1, nothing installed. 'npm ls' on the same tree prints 'left-pad@1.3.0 invalid: '1.2.0' from the root project' plus 'npm error code ELSPROBLEMS / invalid: left-pad@1.3.0 <path>', exit 1. Fix: run npm install to regenerate the lock, commit it.
