Skip to content

Cannot interact with Claude Code interface on Windows #95

Closed as duplicate

Description

@lhiebert01

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

  1. Installed Claude Code globally: npm install -g @anthropic-ai/claude-code
  2. Ran the command: npx @anthropic-ai/claude-code (also tried claude)
  3. The UI appears with text style selection options, but I cannot interact with it
  4. 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

  1. Hoopou commented on Feb 25, 2025

    @Hoopou

    Same here

  2. lhiebert01 commented on Feb 25, 2025

    @lhiebert01
    Author

    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

  3. demiro commented on Feb 25, 2025

    @demiro

    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

    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

  4. wolffiex commented on Feb 25, 2025

    @wolffiex
    Collaborator

    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 claude

  5. JStepUX commented on Feb 25, 2025

    @JStepUX

    Same deal here. Back to web interface until this gets sorted out. Excited!

  6. neoOpus commented on Feb 26, 2025

    @neoOpus

    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...

  7. mubiru-simeon commented on Feb 27, 2025

    @mubiru-simeon

    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

  8. Kiritiyeluru commented on Mar 1, 2025

    @Kiritiyeluru

    I'm checking this issue for information purposes only - not adding an actual comment.

  9. Festivejelly commented on Mar 3, 2025

    @Festivejelly

    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

    Theres a bit missing on that artifact on how to install claude code at the end.

  10. AshishKothari commented on Jul 13, 2025

    @AshishKothari

    If you want to run Claude without using WSL on Windows, try this link I found: Claude in windows without wsl

  11. github-actions commented on Aug 11, 2025

    @github-actions

    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.

  12. locked as resolved and limited conversation to collaborators on Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions