Skip to content

Error on first run on Windows #25

Closed

Description

@joshmouch

I just installed and on first run I get this error:

Image

Activity

  1. DefamationStation commented on Feb 24, 2025

    @DefamationStation

    same error message on first run

    Error: spawn /bin/bash ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82: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 } │
    ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

  2. igorkofman commented on Feb 24, 2025

    @igorkofman
    Collaborator

    What OS and Shell are ya'll using?
    Is there a /bin/bash?

  3. DefamationStation commented on Feb 24, 2025

    @DefamationStation

    nvm I am stupid and apparently can't read, I'm assuming OP made the same mistake as me.

    Operating Systems: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows via WSL

  4. 8bitgentleman commented on Feb 24, 2025

    @8bitgentleman

    I'm on windows 11 and am getting this error using nvm/command prompt

  5. bcherny commented on Feb 24, 2025

    @bcherny
    Collaborator

    Sorry, we don't support Windows. Are you able to use WSL? https://learn.microsoft.com/en-us/windows/wsl/install

  6. added
    invalidIssue doesn't seem to be related to Claude Code
    and removed
    bugSomething isn't working
    on Feb 24, 2025
  7. changed the title [-]Error on first run[/-] [+]Error on first run on Windows[/+] on Feb 24, 2025
  8. joshmouch commented on Feb 24, 2025

    @joshmouch
    Author

    Yes, WSL works. Can you update the readme.md "Get Started" steps?

  9. normanlove222 commented on Feb 26, 2025

    @normanlove222

    WSL is not working for me. I have ubuntu WSL setup and running npx claude gives the same errors and the text display and no chance to select and then exits.

    You all said it works in WSL.

  10. github-actions commented on Aug 9, 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidIssue doesn't seem to be related to Claude Codeplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions