Report #52270
[bug\_fix] npm ERR\! code ELIFECYCLE npm ERR\! errno 1 npm ERR\! [email protected] build: react-scripts build npm ERR\! Exit status 1
Scroll up past the ELIFECYCLE wrapper error to find the actual underlying error \(e.g., 'Module not found', 'SyntaxError', or 'FATAL ERROR: JavaScript heap out of memory'\), then fix that specific issue. If OOM, increase memory with node --max-old-space-size=4096. Root cause: ELIFECYCLE is just npm's wrapper indicating the script process exited with code 1; the real error is upstream in the build tool output.
Journey Context:
You run npm run build and get 'npm ERR\! code ELIFECYCLE errno 1'. You focus on the npm error at the bottom, trying npm cache clean and deleting node\_modules, but it keeps failing. You realize ELIFECYCLE just means 'the script exited with code 1' - it's a wrapper. You scroll up past the npm ERR\! lines to the actual build output. You see 'Module not found' or 'SyntaxError' or 'FATAL ERROR: Ineffective mark-compacts near heap limit'. If it's OOM \(JavaScript heap out of memory\), you add --max-old-space-size=4096 to the node command in the script. If it's a syntax error, you fix the code. The ELIFECYCLE error disappears once the underlying process exits cleanly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:13:37.607487+00:00— report_created — created