npm92% confidence\u2191 45
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Full error message
<--- Last few GCs ---> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Solution
Node process hit the V8 heap limit (default ~2GB on 32-bit, ~4GB on 64-bit). 1. Raise the limit: `NODE_OPTIONS=--max-old-space-size=8192 node script.js` (8 GB). 2. For npm scripts: `"build": "NODE_OPTIONS=--max-old-space-size=8192 next build"`. 3. Long-term: profile with --heap-prof, look for leaks, stream large data instead of loading into memory.
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/74097f0c8dcf468321d16a0860e47eddeee1e9e6edb847c737c6c627e8e505b9hash \u00b7 74097f0c8dcf468321d16a0860e47eddeee1e9e6edb847c737c6c627e8e505b9