Repository navigation
Description
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$
Activity
Hoopou commentedon Feb 25, 2025
Same here
lhiebert01 commentedon Feb 25, 2025
50 more attempts to install - To summarize what we've found:
Claude Code is installed correctly (verified with npm list -g)
Bash exists and has proper permissions in your WSL environment
Both in Windows and WSL, you get the /bin/bash ENOENT error
You also encounter a syntax error in the JavaScript module
Given that Claude Code is still in research preview/beta status, these kinds of compatibility issues aren't surprising. The best approach at this point is to:
Report the issue to Anthropic by creating a GitHub issue at https://github.com/anthropics/claude-code
Include details about all the environments you've tried and the errors you've encountered
Continue using Claude Workbench and the web interface at claude.ai for your AI assistance needs
demiro commentedon Feb 25, 2025
and this issue is where? at least for me, it seems this issue is reported exactly where it needs to be:
#95
I have the same issue btw... not working on win
wolffiex commentedon Feb 25, 2025
Claude Code is intended to work in WSL and not Powershell, but obviously we have some problems. We have some fixes coming. In the meantime, it may help do this:
SHELL=/bin/bash claudeJStepUX commentedon Feb 25, 2025
Same deal here. Back to web interface until this gets sorted out. Excited!
neoOpus commentedon Feb 26, 2025
I tried everything but only the WSL version works, I don't know if I should just keep using WSL as default dev environment... I would love to have both options...
mubiru-simeon commentedon Feb 27, 2025
IF you want to run it on desktop, here's an artifact I made. Just follow step by step.
https://claude.site/artifacts/4af21c1b-8172-434a-83ed-f2d756b555f3
Kiritiyeluru commentedon Mar 1, 2025
I'm checking this issue for information purposes only - not adding an actual comment.
Festivejelly commentedon Mar 3, 2025
Theres a bit missing on that artifact on how to install claude code at the end.
AshishKothari commentedon Jul 13, 2025
If you want to run Claude without using WSL on Windows, try this link I found: Claude in windows without wsl
docs: add comprehensive test documentation and GitHub issue #913
fix: shorten GitHub tool name to resolve Claude Code 64-character limit
github-actions commentedon Aug 11, 2025
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.