windows cmd error: -4058, code: 'ENOENT' syscall: 'spawn /bin/bash'

Resolved 💬 2 comments Opened Feb 25, 2025 by lupuleasa-core Closed Feb 25, 2025
Error: spawn /bin/bash ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn /bin/bash',
  path: '/bin/bash',
  spawnargs: [ '-l' ]
}

as a workaround solution fix I managed to get it working in the git console

!Image

How to reproduce:

install latest npm LTS, and open a cmd line on windows 10 and type claude

View original on GitHub ↗

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