Repository navigation
Replies: 5 comments 1 reply
|
直接改用 node v26.8.2,成功启动了 |
|
补充实测数据(回应 @yx755141 的 v24.1.0 数据点):
所以实际下限并不是 24.0 —— |
|
我把发布产物和仓库声明都对了一遍,你的诊断成立,并且这里有一层我认为报告还没写到的东西 —— 它决定了"engines 声明"这条建议该怎么落地。 一、先给可核对的坐标(都能亲证)
二、报告没有的那一层:本仓库的约定是"engines 只在根声明,不往包里发"我扫了 这有两个后果:
而且 三、同一行守卫的第二个破坏者(与 Node 版本无关)#6225(XeroAlpha)报的是同一行守卫、完全不同的触发路径:PM2 的 fork 容器用
这直接影响到建议 ② 的另一半: 四、还有一个"看不见"的放大器你的数据里 五、给你一条判别器在用户环境里一条命令就能区分属于哪种破坏者:
边界声明:本机只有 v26.5.0( |
|
你同时指出了守卫和未声明 已用真实环境验证,并提供一个今天就能用的桥我用真实 Node 二进制与真实已发布 CLI 复现:
精确的可用边界是 24.2.0 与 22.18.0 —— 不是笼统的「Node 24」;24.0.x / 24.1.0 同样受影响。 桥:
npx dsh-node-compat web
# 或:npm i -g dsh-node-compat && alias dsh=dsh-compat在守卫正常的运行时上它完全静默;在守卫失效的运行时上,它先打印诊断。它绝不会重复执行 —— 当启动器是主模块时, 永久修复是上游两行:把守卫换成在所有受支持运行时上都能用的判断,并声明 Verified — and a bridge that works todayI reproduced this on real Node binaries and the real published CLI:
The exact availability boundary is 24.2.0 and 22.18.0 — not "24" as a whole; 24.0.x and 24.1.0 are affected too. Bridge:
npx dsh-node-compat web
# or: npm i -g dsh-node-compat && alias dsh=dsh-compatOn a runtime where the guard works it is completely silent; on one where it does not, it prints the diagnosis first. It never double-runs, because when the launcher is the main module The permanent fix is two lines upstream: replace the guard with a check that works on every supported runtime, and declare |

Uh oh!
There was an error while loading. Please reload this page.
现象
按官方公告的快速体验命令,在 Node.js < 24 的环境里启动 Web UI,命令无任何输出、退出码 0,完全静默失败:
所有子命令(
--version/--help/web/plugin)行为相同,终端、stderr 均无任何信息,用户无从排查。降回 0.1.2-rc.1 则一切正常。环境
@deepseek-ai/dsh0.1.5-rc.1(npm dist-taglatest),npm install -g安装过程无任何警告根因
0.1.5-rc.1 的 bin 入口(
lib/bin.js)末行:import.meta.main是 Node.js 24 才引入的属性,旧版本上为undefined(属性访问,不是语法错误),因此整个runCli()被静默跳过,进程正常退出 —— 零输出、退出码 0。实测(macOS,同一台机器):
import.meta.mainundefinedundefinedtrue同时
package.json没有engines字段,npm 在旧 Node 上安装时不会给出任何提示,问题直到运行才暴露。建议
package.json声明"engines": { "node": ">=24" },让安装阶段至少有警告;import.meta.main === undefined时打印明确的 Node 版本要求并以非零码退出;或改用兼容旧版本的入口判断,例如import.meta.url === pathToFileURL(process.argv[1]).href。受影响范围
公告推荐的安装路径
npx @deepseek-ai/dsh web+ "已安装 Node.js 开发工具链" 的表述,会覆盖大量 Node 20/22/23 用户(含 22 LTS),症状是完全静默的失败。临时解法:升级 Node ≥ 24(如
brew upgrade node),或回退npm install -g @deepseek-ai/dsh@0.1.2-rc.1。附录:官方公告
《DeepSeek Harness 更新:适配 DeepSeek V4.1 Flash 模型》(2026-09-10)— "安装使用"一节仅要求"已安装 Node.js 开发工具链",未提及 Node 版本要求;v0.1.5-rc.1 的 release notes 中同样未提及。
EN summary: On Node.js < 24, every dsh 0.1.5-rc.1 command (
npx @deepseek-ai/dsh web,dsh --version, …) exits 0 with zero output. Root cause: the bin entry ends withif (import.meta.main) await runCli()andimport.meta.mainis only defined on Node ≥ 24 (verifiedundefinedon v22.14/v23.11, works on v26.8.2); the package also declares noenginesfield, so npm installs silently. Suggested: declareengines.node >= 24and/or fail loudly (non-zero exit with a clear message) when the entry guard is unsupported.All reactions