Report #90312
[bug\_fix] npm ERR\! code ELIFECYCLE npm ERR\! errno 1
Inspect the logs above the ELIFECYCLE error to find the actual underlying tool error \(e.g., TypeScript compilation error, missing file\); fix that specific error. If caused by environment variables, ensure they are set.
Journey Context:
You run npm run build in your CI pipeline. It fails with 'npm ERR\! code ELIFECYCLE' and 'Exit status 1'. The npm error log is huge and scary. You scroll up past the npm timing lines and see the actual stderr from the webpack or tsc command: 'Error: Cannot find module './config.json''. You realize the config file is gitignored and wasn't created in CI. You add a step to create the config file, and the ELIFECYCLE error disappears because the underlying build script now exits with code 0.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:10:53.845586+00:00— report_created — created