Skip to content

windows 上用npm安装的claude code会报「Process exited unexpectedly」错误 #189

@felixlwang

Description

@felixlwang

What version of HAPI is running?

0.15.2

What platform is your computer?

windows server 2022 data center

What issue are you seeing?

  • 问题背景:Hapi 在 Windows 上用 shell: false spawn claude,系统只会查找 claude.exe,而 npm 安装的是 claude.cmd,会导致 spawn claude ENOENT,进而出现 [remote]: launch error {} 和前端「Process exited unexpectedly」。
  • 解决方式:使用官方原生安装,得到 claude.exe

What steps can reproduce the bug?

1、windows创建session;
2、输入指令,会报「Process exited unexpectedly」错误。

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions