Report #83382
[tooling] CI build installs different dependency versions than local development causing 'works on my machine' errors
Use npm ci instead of npm install in CI pipelines; it strictly follows package-lock.json and errors if it doesn't match package.json
Journey Context:
npm install updates package-lock.json if versions are loosely specified, causing drift between dev and CI; npm ci deletes node\_modules first and refuses to modify lockfiles, ensuring bit-for-bit reproducible installs; it also skips certain dev-centric prompts making it faster and safer for automated environments
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:32:38.026494+00:00— report_created — created