Bash Command Execution Fails on Windows with Cygpath Not Found

Resolved 💬 5 comments Opened Jul 18, 2025 by nhopDV Closed Jul 21, 2025

Bug Description
since 1.0.55, claude code can't execute any bash commands. Search, LS, Grep and all other tools work fine. Just the Bash tool gives this error:

Error: Command failed: cygpath -u 'C:\Users\xxxx\AppData\Local\Temp'
/usr/bin/bash: line 1: cygpath: command not found
⎿  Interrupted by user

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 1.0.55
  • Feedback ID: 07978100-3678-4978-8c9a-f5d3783a2f14

Errors

[{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR: Cannot open Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:883:11)\n    at execSync (node:child_process:955:15)\n    at q5 (file:///C:/Users/xxxx/OneDrive/Documenten/LocalApps/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:727:4693)\n    at tc (file:///C:/Users/xxxx/OneDrive/Documenten/LocalApps/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:1208:1937)\n    at file:///C:/Users/xxxx/OneDrive/Documenten/LocalApps/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:2654:9369\n    at async file:///C:/Users/xxxx/OneDrive/Documenten/LocalApps/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:2409:6947\n    at async Promise.all (index 12)\n    at async XZ4 (file:///C:/Users/xxxx/OneDrive/Documenten/LocalApps/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:2409:6906)","timestamp":"2025-07-18T13:01:15.443Z"}]

View original on GitHub ↗

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