Skip to content

Windows上claude即使配置HAPI_CLAUDE_PATH仍然无法被hapi访问 #425

@MuuuShin

Description

@MuuuShin

What version of HAPI is running?

hapi version: 0.16.6

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

由于windows上路径读取和其他平台不同,必须要安装全量版本claude配置HAPI_CLAUDE_PATH (https://github.com/tiann/hapi/pull/143)来使得hapi连上claude

但即使配置了HAPI_CLAUDE_PATH,只有命令行下直接启动hapi (claude) 能够正常使用,通过其他渠道(如webui)仍然无法正常打开claude,报错

Process exited unexpectedly: Failed to spawn Claude Code process: ENOENT: no such file or directory, uv_spawn 'C:\Users*****\AppData\Roaming\npm'

Image

What steps can reproduce the bug?

irm https://claude.ai/install.ps1 | iex 安装全量claude
配置HAPI_CLAUDE_PATH C:\Users****.local\bin\claude.exe
npm install -g @twsxtd/hapi 安装hapi
hapi hub --no-relay 启动
访问http://localhost:3006/

What is the expected behavior?

应该能正常对话

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