Report #6110
[bug\_fix] npm ERR\! code EINTEGRITY / npm ERR\! code EUSAGE \(npm ci\)
Ensure package-lock.json is committed and in sync with package.json; run npm install locally to regenerate if needed
Journey Context:
CI pipeline \(GitHub Actions/GitLab\) runs npm ci and fails immediately with EUSAGE or integrity check failures. Locally, npm install works fine. Realized that npm ci requires an existing package-lock.json and fails if package.json versions don't match the lockfile exactly. The lockfile wasn't committed to git \(in .gitignore\), or a developer manually edited package.json without running npm install to update the lock. Fix: Remove node\_modules and package-lock.json locally, run npm install to generate a fresh lockfile, commit it to git. In CI, use npm ci for faster, reproducible installs. If integrity checks fail due to corrupted cache, run npm cache clean --force.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:12:11.518372+00:00— report_created — created