Report #101432
[bug\_fix] npm ERR\! code ELIFECYCLE — script exits with status 1
Run the failing script directly with more verbose output \(\`npm run
Journey Context:
A developer runs \`npm run build\` and sees only \`npm ERR\! code ELIFECYCLE\` and \`npm ERR\! errno 1\`. The wrapper hides the real error. They first blame npm itself, delete \`node\_modules\`, and reinstall, but the failure repeats. They then run \`npm run build --verbose\` and discover the actual line that died: Vite failed because an imported SVG path could not be resolved. Once the SVG import is corrected, the ELIFECYCLE error disappears. The key insight is that \`ELIFECYCLE\` is npm's generic exit-code propagation: any script returning a non-zero exit code gets repackaged as \`ELIFECYCLE\`, so the fix is always in the wrapped command, not in npm.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T04:50:33.549629+00:00— report_created — created