Claude Desktop遇到No path to Claude code executable解决

Claude Desktop遇到Something went wrong Try sending your message again. If it keeps happening, share feedback so we can investigate.  No path to Claude code executable

将node和git都装好后,挂上代理还是不行,并报spawn EBUSY错误,如下解决。

Windows 11 专属修复:spawn EBUSY 终极解决
你现在的报错 spawn EBUSY 是 Windows 11 特有的锁文件 / 进程占用错误!意思就是:Claude Desktop 想调用 Claude Code,但这个程序被系统锁住、正在占用、无法启动 —— 跟版本、API 无关,纯 Windows 进程冲突。
你已经装好了 Claude Code 2.1.138,不用重装、不用改 API,按下面 3 步 1 分钟搞定:
第一步:强制杀死占用的 Claude 进程(必做)
右键开始菜单 → 打开 PowerShell (管理员)
复制粘贴这行命令,直接回车:
powershell
taskkill /f /im claude.exe /t
taskkill /f /im node.exe /t
taskkill /f /im ClaudeDesktop.exe /t
看到「成功终止」就对了
第二步:删除 Claude 锁文件(解决 EBUSY 根源)
继续在管理员 PowerShell 里粘贴:
powershell
# 删除锁文件和临时缓存
rm -force "$env:USERPROFILE\.local\bin\claude.exe.lock" -erroraction silentlycontinue
rm -force "$env:USERPROFILE\.cache\claude\*" -recurse -erroraction silentlycontinue
rm -force "$env:APPDATA\ClaudeDesktop\*lock*" -recurse -erroraction silentlycontinue
第三步:修复权限 + 重启(最后一步)
继续粘贴:
powershell
# 修复权限
icacls "$env:USERPROFILE\.local\bin\claude.exe" /grant everyone:f /t
# 重启 Claude 服务
cd $env:USERPROFILE\.local\bin
./claude.exe --exit
现在直接打开 Claude Desktop
99% 概率 spawn EBUSY 立刻消失!

posted @ 2026-05-16 21:15  西葫芦的小孩  阅读(2352)  评论(0)    收藏  举报