[BUG] when I open clod code -TREAM_DESTROYED

Resolved 💬 3 comments Opened Dec 24, 2025 by vtbalaji Closed Dec 28, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at _write (node:internal/streams/writable:489:11)
at Writable.write (node:internal/streams/writable:508:10)
at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1611:14632
at new Promise (<anonymous>)
at BUQ.write (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1611:14526)
at vk1.doWrite (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1583:1708)
at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1583:1604
at runNextTicks (node:internal/process/task_queues:64:5)
at process.processImmediate (node:internal/timers:472:9)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
at _write (node:internal/streams/writable:489:11)
at Writable.write (node:internal/streams/writable:508:10)
at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1611:14632
at new Promise (<anonymous>)
at BUQ.write (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1611:14526)
at vk1.doWrite (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1583:1708)
at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1583:1604

this happened after installing plugin on Mac , like typescript,python ,git...

What Should Happen?

open Claude Code without error

Error Messages/Logs

Steps to Reproduce

just install the plugin on Mac after that open Claude on command line

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Version: 2.0.35

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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