Claude Code - Memory Allocation Error in SLURM Environment
Resolved 💬 3 comments Opened Feb 26, 2025 by amitlevy Closed Nov 29, 2025
Environment
- OS: Linux (kernel 6.8.0-52-generic)
- Node.js: v20.9.0
- npm: 10.1.0
- Environment: SLURM cluster (Oxford ARC HTC)
Issue Description
When attempting to run Claude Code on a SLURM cluster login node, I encounter a WebAssembly memory allocation error that prevents the tool from starting.
Error Message
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance]
Node.js v20.9.0
Steps to Reproduce
- Installed Node.js via environment modules (
module load nodejs) - Configured npm to use a custom global directory in a location with sufficient space
- Successfully installed Claude Code with
npm install -g @anthropic-ai/claude-code - Attempted to run
claudecommand - Immediately received the WebAssembly memory allocation error
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗