Report #90111
[bug\_fix] npm ERR\! code ELIFECYCLE \| npm ERR\! errno 1
Scroll up in the log output to find the actual underlying error \(compilation failure, test failure, missing binary\). The ELIFECYCLE error is just npm reporting that the script exited with code 1. Fix the root cause shown earlier in the logs, or run the command directly with npx to bypass npm's error handling.
Journey Context:
You run npm run build and see ELIFECYCLE error with errno 1 at the bottom of a red wall of text. You initially think npm itself is broken. You scroll up through the logs and see that actually webpack failed with 'Module not found' or TypeScript compilation errors about type mismatches. You realize ELIFECYCLE is just npm's way of saying 'the script you ran exited with an error code'. It adds this wrapper error after the actual error to indicate which lifecycle script failed. You fix the actual TypeScript error \(a missing import or type definition\), run npm run build again, and it succeeds. If you want to see the pure error without npm's wrapper, you run npx webpack directly instead of npm run build, which shows the error without the ELIFECYCLE wrapper.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:50:49.416749+00:00— report_created — created