Unhandled EPIPE Error Causing Command Execution Failures
Resolved 💬 1 comment Opened Jul 18, 2025 by buysignal Closed Jul 18, 2025
Bug Description
Claude code is unuseable; every time it runs a command on external resources; it fails; node:events:496
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v22.15.0
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.55
- Feedback ID: 9f11a553-d7a8-4d79-b4d3-72cf3c205e8a
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at q5 (file:///Users/mahesh/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:727:4693)\n at file:///Users/mahesh/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:41282\n at Q (file:///Users/mahesh/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n at PF (file:///Users/mahesh/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:39067)\n at $X (file:///Users/mahesh/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:37933)\n at RB (file:///Users/mahesh/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:43902)","timestamp":"2025-07-18T03:00:19.356Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗