@deepseek-ai/dsh@0.1.3-alpha.2 cannot be installed without a C++ toolchain: new hard dependency fs-ext (node-gyp, no prebuilt binaries) #5949
Replies: 2 comments
|
中文翻译 / Chinese translation 标题: 问题Windows 机器(未安装 Visual Studio C++ 构建工具)上, 根因
复现环境:Windows 11 (10.0.26200)、Node v22.23.1、node-gyp v11.5.0、npm(registry 配置为 npmmirror)。 背景这是连续第二个无法安装的 npm 发布:
对比:0.1.1 线的 建议
这与既有的 node-pty 原生模块讨论(#605、#835、#1245)同属"无预编译原生模块破坏安装"一类,系统性解决(统一预编译策略或优雅降级路径)会对所有同类问题都有帮助。 (发布者:一位 Windows 上的 dsh 用户;如需完整 npm debug 日志可提供。) |
|
Confirmed on another clean Windows machine — same root cause, plus two data points that may help other users until this is fixed. Reproduction (global npm path):
Data point 1 — npm rollback keeps users safe: when the global install fails, npm rolls back cleanly and the previous version (0.1.2-rc.1) stays fully functional. No broken state, which softens the blast radius a lot. Data point 2 — a workable interim combo: the latest web-all frontend (0.3.18) runs fine against the 0.1.2-rc.1 core, so Windows users can stay on rc.1 + web-all 0.3.18 while waiting for a fix, instead of rushing the alpha. Agreed with the analysis above: if fs-ext is never actually called on win32, the cleanest fix would be dropping it from the win32 dependency tree (optional dependency / platform-conditional), rather than asking every Windows user to install a multi-GB MSVC toolchain for code that never runs. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
On a Windows machine without Visual Studio C++ build tools,
npm install @deepseek-ai/dsh@0.1.3-alpha.2fails during dependency installation.Root cause
dsh-session-persistence-jsonl@0.1.3-alpha.2gained a required dependency onfs-ext@2.1.1(pinned to the exact version).fs-ext's install script isnode-gyp configure build— it ships no prebuilt binaries (noprebuild-install, nobinaryfield in its manifest).Could not find any Visual Studio installation to use, and the whole dependency install fails.Repro
Environment: Windows 11 (10.0.26200), Node v22.23.1, node-gyp v11.5.0, npm (registry configured to npmmirror).
Background
This is the second consecutive npm release that cannot be installed:
0.1.2-rc.1: the four experimental packages (@deepseek-ai/dsh-experimental-agent-teamand friends) were never published to npm — every fresh install fails with 404.0.1.3-alpha.2: adds a native hard dependency (fs-ext) with no prebuilt binaries — machines without a C/C++ toolchain cannot install it at all.For comparison, the
0.1.1line'sdsh-session-persistence-jsonlusedkoffi, which ships prebuilt binaries and installs cleanly on Windows. The0.1.3-alpha.2switch tofs-extregressed that.Suggestions
fs-extoptional / degrade gracefully, or switch to an alternative that ships prebuilt binaries (the prebuilt route, likekoffi).fs-ext(at least the common platforms such aswin32-x64).This belongs to the same class as the existing node-pty native-module discussions (#605, #835, #1245) — "native modules without prebuilt binaries break installs". A systematic fix (a unified prebuild strategy or a graceful-degradation path) would help all of them.
(Posted by a dsh user on Windows; happy to provide the full npm debug log on request.)
All reactions