[Bug] Windows path handling broken in bash tool execution

Resolved 💬 3 comments Opened Feb 21, 2026 by OndrejValenta Closed Feb 25, 2026

Bug Description
In latest versions, on Windows 10 the claude cli gets to this weird state when in middle of the work it cannot run anything, or it cannot find a folder that exists, especially in format c:\something\else, it shouldn't be so hard to do a transformation of the path based on which OS is this running on..

Bash(dir "C:\Git\KM\keen_auth\lib" 2>&1)
⎿  Error: Exit code 2

● Bash(test -d /c/Git/KM/keen_auth && echo "exists" || echo "not found"; test -d /c/Git/KM/keen-auth && echo "exists" || echo "not found")
⎿  Error: Exit code 1

● Read 2 files (ctrl+o to expand)

● Bash(cd "C:\\Git\\KM" && ls 2>&1)
⎿  Error: Exit code 2

● Read 1 file (ctrl+o to expand)

● Bash(pwd 2>&1)
⎿  Error: Exit code 1

● Bash(echo hello 2>&1)
⎿  Error: Exit code 1

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.45
  • Feedback ID: 5a2e4f47-7d70-43dd-902f-01f6c8ce0113

Errors

[{"error":"If1: Another process is currently installing an update\n    at zU6 (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:3505:3235)\n    at file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:7298:3344\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-02-20T16:47:32.471Z"},{"error":"AxiosError: Request failed with status code 401\n    at sb (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:34:1138)\n    at IncomingMessage.<anonymous> (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:35:9827)\n    at IncomingMessage.emit (node:events:520:35)\n    at endReadableNT (node:internal/streams/readable:1701:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)\n    at gv6.request (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:37:2132)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async zW9 (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:1648:366)","timestamp":"2026-02-20T19:12:09.659Z"},{"error":"If1: Failed to install new version of claude:  npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll\nnpm error dest C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\.claude-code-0EZiIMYo\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll\nnpm error errno -4082\nnpm error EBUSY: resource busy or locked, copyfile 'C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll' -> 'C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\.claude-code-0EZiIMYo\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll'\nnpm error A complete log of this run can be found in: C:\\Users\\OndrejValenta\\AppData\\Local\\npm-cache\\_logs\\2026-02-20T19_12_09_552Z-debug-0.log\n    at zU6 (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:3515:834)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli.js:7298:3338","timestamp":"2026-02-20T19:12:10.920Z"},{"error":"If1: Failed to install new version of claude:  npm error code EBUSY\nnpm error syscall copyfile\nnpm error path C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll\nnpm error dest C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\.claude-code-0EZiIMYo\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll\nnpm error errno -4082\nnpm error EBUSY: resource busy or locked, copyfile 'C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\claude-code\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll' -> 'C:\\Users\\OndrejValenta\\AppData\\Roaming\\nvm\\v24.11.1\\node_modules\\@anthropic-ai\\.claude-code-0EZiIMYo\\node_modules\\@img\\sharp-win32-x64\\lib\\libvips-42.dll'\nnpm error A complete log of this run can be found in: C:\\Users\\OndrejValenta\\AppData\\Local\\npm-cache\\_logs\\2026-02-20T19_12_20_000Z-debug-0.log\n    at zU6 (file:///C:/Users/OndrejValenta/AppData/Roaming/nvm/v24.11.1/node_modules/@anthropic-ai/claude-code/cli…

Note: Content was truncated.

View original on GitHub ↗

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