Report #102896
[tooling] NPM install is slow on CI or when re-creating node\_modules frequently
Use \`npm ci\` \(clean install\) instead of \`npm install\` in automated environments. It installs exact versions from package-lock.json, skips resolution, and is faster and more deterministic. Use \`npm ci --only=production\` to skip dev dependencies.
Journey Context:
npm install resolves versions each time and may update the lock file unexpectedly. npm ci fails if package-lock.json is out of sync with package.json, catching errors early. Common mistake: running npm ci locally and expecting it to update the lock file -- it never writes to it. For cached installs, pair with \`--prefer-offline\` or a cache directory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T15:51:32.856365+00:00— report_created — created