iwolfor

iwolfor

V2EX member #511709, joined on 2020-10-10 05:56:25 +08:00
Today's activity rank 10611
Per iwolfor's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
iwolfor's recent replies
8h 52m ago
Replied to a topic by qw4941737582024 程序员 本地 Coding Agent 工作台: CoDock
@qw4941737582024 对,CoDock-Setup-0.4.2-x64.rar
12h 10m ago
Replied to a topic by qw4941737582024 程序员 本地 Coding Agent 工作台: CoDock
@qw4941737582024 win11 home
@woai110120130 您客气有心了,感谢!!!
不错,windows 版上线了,可以试试了。
@woai110120130 win11
### PATH 环境检查结果

| 项目 | 结果 |
| ---------------------------- | ------------------------------------------- |
| 手动打开的 PowerShell `node` | ✅ 可用 → `C:\Program Files\nodejs\node.exe` |
| 机器级 PATH ( Machine ) | ✅ 包含 `C:\Program Files\nodejs` |
| 用户级 PATH ( User ) | ❌ **不包含** nodejs |
| bash ( Git Bash )里 `node` | ✅ 可用( v24.15.0 ) |

### 3. 根因

**Claude Code 的 hook 子进程 PATH 只继承了用户级 PATH ,而 `node` 安装在机器级 PATH 里,导致裸 `node` 命令在 hook 进程中找不到。**

- 交互终端( PowerShell / Git Bash )会合并「机器级 + 用户级」 PATH ,所以正常。
- Claude Code hook 子进程的环境与交互终端不一致,读不到机器级 PATH 。
- 这是 Windows 上 `node`/`python3` 等装在系统级的程序在 Claude hook 里常见的坑。
▎ Using DeepSeek-V4-Flash[1m] (from .claude\settings.json) · /model
⎿  SessionStart:startup hook error
⎿  Failed with non-blocking status code: /usr/bin/bash: line 1: powershell.exe: command not found
⎿  SessionStart:startup hook error
⎿  Failed with non-blocking status code: &: The term 'node' is not recognized as a name of a cmdlet, function,
script file, or executable program.
⎿  SessionStart:startup hook error
⎿  Failed with non-blocking status code: &: The term 'node' is not recognized as a name of a cmdlet, function,
script file, or executable program.
⎿  SessionStart:startup hook error
⎿  Failed with non-blocking status code: node: The term 'node' is not recognized as a name of a cmdlet, function,
script file, or executable program.

貌似不能正确识别本地自定义的 hook 。
2 days ago
Replied to a topic by qw4941737582024 程序员 本地 Coding Agent 工作台: CoDock
明明系统已经安装了主流 cli ,但检测路径是错误的.Shim: Could not determine if target is a GUI app. Assuming console.
Shim: Could not create process with command
2 days ago
Replied to a topic by qw4941737582024 程序员 本地 Coding Agent 工作台: CoDock
怎么没有浅色模式,暗灰模式个人感觉有点怪。
Quantumult 无法导入
@axb 更新版本好了。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3089 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 14:16 · PVG 22:16 · LAX 07:16 · JFK 10:16
♥ Do have faith in what you're doing.