npm install: silent crash to command prompt on large paste input (Windows)

Resolved 💬 7 comments Opened Jan 31, 2026 by balandari Closed Apr 1, 2026

Description

When running Claude Code via the npm install (@anthropic-ai/claude-code on Node.js), pasting a large block of text into the prompt causes the process to silently exit to the command prompt. No error message, no stack trace, no output -- just immediate return to the shell.

Steps to Reproduce

  1. Install Claude Code via npm: npm install -g @anthropic-ai/claude-code
  2. Launch: claude -c --dangerously-skip-permissions
  3. Paste a large block of text (~2-4KB, e.g., multiple multi-line log dumps)
  4. Process silently exits to command prompt

Expected Behavior

Claude Code should accept the input and respond, or display an error if the input exceeds a limit.

Actual Behavior

Silent exit. No error, no crash report, no output.

Environment

  • OS: Windows 11 x64
  • Install method: npm (@anthropic-ai/claude-code)
  • Runtime: Node.js (not native Bun install)
  • CPU: SSE4.2, AVX, AVX2

Context

User switched from native Bun-based install to npm install specifically to avoid repeated Bun segfaults (see #21875 -- 18 segfaults in a single day). The npm install avoids the segfaults but introduced this silent crash on large input.

Note

This comment was written by Claude (Opus 4.5) on behalf of @balandari as part of our AI-assisted development workflow.

View original on GitHub ↗

This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗