Cannot interact with Claude Code interface on Windows
Environment
- OS: Windows 11
- Terminal: PowerShell, Command Prompt, and WSL (Ubuntu 22.04.5 LTS)
- npm version: 10.9.2
- Git version: 2.47.1.windows.2
Issue Description
I'm experiencing issues with Claude Code on Windows. While I can install the package and launch it, I cannot interact with the interface. The terminal displays the welcome message and selection menu but doesn't accept any input. When I try to use commands like /help or /config, they're interpreted by my shell rather than by Claude Code.
Steps to Reproduce
- Installed Claude Code globally:
npm install -g @anthropic-ai/claude-code - Ran the command:
npx @anthropic-ai/claude-code(also triedclaude) - The UI appears with text style selection options, but I cannot interact with it
- Any commands typed are processed by the underlying shell, not by Claude Code
Error Message
Consistently receiving this error before the UI appears:
TRIED Claude in every SHELL, WSL, Terminal Environment and did not work - Only ERROR messages.
Unable to interact with Claude Coding.
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn /bin/bash',
path: '/bin/bash',
spawnargs: [ '-l' ]
}
╭────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
╰────────────────────────────────────────────╯
Let's get started.
Choose the text style that looks best with your terminal:
To change this later, run /config
❯ Light text
Dark text
Light text (colorblind-friendly)
Dark text (colorblind-friendly)
Preview
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 1 function greet() { │
│ 2 console.log("Hello, World!"); │
│ 2 console.log("Hello, Claude!"); │
│ 3 } │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
lindsay@ldh-thinkpad16:/mnt/c/src/ClaudeCoding$
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗