[Bug] Node.js Out of Memory Error During Heap Allocation
Bug Description
[442435:0x56505785a000] 42870971 ms: Scavenge (interleaved) 4007.7 (4074.9) -> 3996.9 (4151.4) MB, pooled: 0 MB, 10.73 / 0.00 ms (average mu = 0.240, current mu = 0.169) allocation failure;
[442435:0x56505785a000] 42872374 ms: Mark-Compact (reduce) 3997.2 (4151.4) -> 3993.7 (4030.6) MB, pooled: 0 MB, 1391.41 / 0.00 ms (+ 8.7 ms in 4 steps since start of marking, biggest step 5.0 ms, walltime since start of marking 1404 ms) (average mu = 0.1
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0x56501ab04118 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [claude]
2: 0x56501b034b34 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [claude]
3: 0x56501b034c3b v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [claude]
4: 0x56501b2c5a1c [claude]
5: 0x56501b2cbcd6 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [claude]
6: 0x56501b2cbde7 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector, v8::base::TimeTicks) [claude]
7: 0x56501b2db524 [claude]
8: 0x56501b2de754 [claude]
9: 0x56501bd70f67 [claude]
[1] 442435 IOT instruction (core dumped) claude
Environment Info
- Platform: linux
- Terminal: alacritty
- Version: 1.0.110
- Feedback ID: 84fc5b69-411a-43a6-8f25-c916d4007a9a
Errors
[{"error":"Error: Insufficient permissions for global npm install.\n at YD0 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1622:1009)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async FG1 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:1632:43)\n at async file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:3585:12430","timestamp":"2025-09-12T10:12:27.080Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗