Report #97766
[bug\_fix] npm ERR\! code ELIFECYCLE npm ERR\! errno 1 npm ERR\! [email protected] build: react-scripts build npm ERR\! Exit status 1
Ignore the npm wrapper error and scroll up to the actual tool output \(webpack, tsc, vite, etc.\). Run the script directly with npm run build --verbose or call the underlying command \(e.g., npx tsc --noEmit\) to see the real stack trace, then fix the underlying lint/type/build failure.
Journey Context:
You run npm run build and the last lines only say ELIFECYCLE with exit status 1, so you think npm itself is broken. You rerun with --verbose and notice the real error is a TypeScript type failure printed 50 lines earlier. npm lifecycle scripts exit with whatever code the child process returns; npm wraps that failure as ELIFECYCLE for bookkeeping. The fix is never 'fix npm'—it is to fix the script's underlying error, which you find by reading the full output or running the command directly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:39:58.511489+00:00— report_created — created