[BUG] Title: claude doctor fails with "Raw mode is not supported" error in iTerm2

Resolved 💬 3 comments Opened Sep 1, 2025 by YvgenTroshchiy Closed Sep 5, 2025

Environment

  • Claude Code Version: 1.0.98
  • OS: macOS (Darwin 24.6.0)
  • Terminal: iTerm2
  • Terminal Type: xterm-256color
  • Node.js: Present (Claude Code runs successfully)

## Problem
The claude doctor command consistently fails with a raw mode error, timing out after 2 minutes.

## Error Output
Error: Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported
at handleSetRawMode (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:838:3853)

## Reproduction Steps

  1. Install Claude Code via npm
  2. Run claude doctor in iTerm2 terminal
  3. Command fails immediately with raw mode error

## Expected Behavior
claude doctor should run diagnostic checks and display results

## Current Workaround
Claude Code functions normally for all other operations; only the doctor command is affected.

## Additional Notes

  • Tried with different TERM settings
  • Tried updating to latest version
  • Main Claude Code functionality works perfectly

View original on GitHub ↗

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