EPIPE Crash When Running Claude Code in Python Project Directory

Resolved 💬 14 comments Opened Feb 24, 2025 by corv89 Closed Feb 26, 2025

Bug Description
I keep getting EPIPE related crashes when running Claude Code in my Python project directory

e.g.: ❯ claude
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (node:internal/stream_base_commons:150:3)
at Socket._writeGeneric (node:net:971:11)
at Socket._write (node:net:983:8)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
at Writable.write (node:internal/streams/writable:508:10)
at m8.sendToShell (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.mjs:339:243)
at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.mjs:337:1614
at new Promise (<anonymous>) {
errno: -32,
code: 'EPIPE',
syscall: 'write'

Environment Info

  • Platform: macos
  • Terminal: Apple_Terminal
  • Version: 0.2.9
  • Feedback ID: 84e869fe-5511-44c8-8fb0-d9652126fc9c

View original on GitHub ↗

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