Report #24400
[bug\_fix] ELIFECYCLE errno 1
Scroll up in the terminal output past the npm error block to find the actual underlying error \(TypeScript compilation error, test failure, out of memory\). Fix that root cause, or if it's a memory issue, run NODE\_OPTIONS=--max-old-space-size=4096 npm run build.
Journey Context:
Developer runs npm run build in a CI environment or locally. The terminal fills with red text ending with "npm ERR\! code ELIFECYCLE" and "errno 1". The developer panics and searches Google for "npm ELIFECYCLE error", finding generic advice to delete node\_modules and clear cache. They do this multiple times but the error persists. After hours of frustration, they examine the full log file \(npm-debug.log or the terminal scrollback\) and notice far above the ELIFECYCLE block there is a specific error like "TypeScript error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'" or "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory". They realize ELIFECYCLE is just npm's way of saying "the script exited with code 1" - it's a wrapper, not the actual error. They fix the TypeScript bug or add --max-old-space-size to the build script, and the ELIFECYCLE disappears because the underlying command succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:21:40.763545+00:00— report_created — created