When I ask Claude to create a file in the current directory that I am running him in, I keep getting this error:

Resolved 💬 1 comment Opened Nov 6, 2025 by BorisKodzhabashev Closed Nov 6, 2025

Bug Description
RangeError: Array length must be a positive integer or safe magnitude.
at B:/-BUN/root/claude.exe:195:xx
at B:/-BUN/root/claude.exe:197:xx
at B:/-BUN/root/claude.exe:216:xx
at B:/-BUN/root/claude.exe:96:xx
Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.34
  • Feedback ID: ff7f533c-7593-40b6-b313-5c2c79cf7f11

Errors

[{"error":"Error: No suitable shell found. Claude CLI requires a Posix shell environment. Please ensure you have a valid shell installed and the SHELL environment variable set.\n    at dxf (B:/~BUN/root/claude.exe:1477:1164)\n    at cxf (B:/~BUN/root/claude.exe:1477:1221)\n    at cxf (B:/~BUN/root/claude.exe:1477:1344)\n    at A (B:/~BUN/root/claude.exe:11:15149)\n    at D8$ (B:/~BUN/root/claude.exe:4049:10488)\n    at async <anonymous> (B:/~BUN/root/claude.exe:4066:1353)\n    at async parseAsync (B:/~BUN/root/claude.exe:27:4180)\n    at async iu1 (B:/~BUN/root/claude.exe:4111:1646)\n    at async mu1 (B:/~BUN/root/claude.exe:4053:1746)\n    at async ru1 (B:/~BUN/root/claude.exe:4111:10614)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T10:55:08.184Z"},{"error":"Error: No suitable shell found. Claude CLI requires a Posix shell environment. Please ensure you have a valid shell installed and the SHELL environment variable set.\n    at dxf (B:/~BUN/root/claude.exe:1477:1178)\n    at cxf (B:/~BUN/root/claude.exe:1477:1221)\n    at cxf (B:/~BUN/root/claude.exe:1477:1344)\n    at A (B:/~BUN/root/claude.exe:11:15149)\n    at D8$ (B:/~BUN/root/claude.exe:4049:10488)\n    at async <anonymous> (B:/~BUN/root/claude.exe:4066:1353)\n    at async parseAsync (B:/~BUN/root/claude.exe:27:4180)\n    at async iu1 (B:/~BUN/root/claude.exe:4111:1646)\n    at async mu1 (B:/~BUN/root/claude.exe:4053:1746)\n    at async ru1 (B:/~BUN/root/claude.exe:4111:10614)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T10:55:08.212Z"},{"error":"Error: Executable not found in $PATH: \"C:\\Program Files\\Git\"\n    at spawnSync (unknown)\n    at spawnSync (node:child_process:226:22)\n    at execSync (node:child_process:275:109)\n    at kK (B:/~BUN/root/claude.exe:83:432)\n    at $w (B:/~BUN/root/claude.exe:3743:8431)\n    at Gd$ (B:/~BUN/root/claude.exe:1682:3830)\n    at <anonymous> (B:/~BUN/root/claude.exe:1680:6585)\n    at <anonymous> (B:/~BUN/root/claude.exe:1680:7158)\n    at map (native:1:11)\n    at aaf (B:/~BUN/root/claude.exe:1680:6436)","timestamp":"2025-11-06T10:56:37.413Z"},{"error":"Error: Executable not found in $PATH: \"C:\\Program Files\\Git\"\n    at spawnSync (unknown)\n    at spawnSync (node:child_process:226:22)\n    at execSync (node:child_process:275:109)\n    at kK (B:/~BUN/root/claude.exe:83:432)\n    at $w (B:/~BUN/root/claude.exe:3743:8431)\n    at Gd$ (B:/~BUN/root/claude.exe:1682:3830)\n    at <anonymous> (B:/~BUN/root/claude.exe:1680:6585)\n    at <anonymous> (B:/~BUN/root/claude.exe:1680:7158)\n    at map (native:1:11)\n    at aaf (B:/~BUN/root/claude.exe:1680:6436)","timestamp":"2025-11-06T10:56:42.637Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗