Claude Code errors / Install
ENOEXEC: posix_spawn '/mnt/c/Windows/System32/reg.exe'
Cause
Claude Code unconditionally spawns reg.exe on startup for Chrome native-messaging registration; with WSL Windows interop disabled, the file exists at the mount path but cannot execute.
Fix
If interop must stay disabled, there is no user-side fix as of v2.1.118 - the crash precedes any prompt. As a workaround, temporarily re-enable interop in /etc/wsl.conf ([interop] enabled=true) while launching Claude Code, then disable again. Track the upstream issue for a fix.
Part of the Automation Error Index — Claude Code errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem