You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
现象
仓库克隆在非系统盘(pnpm config set store-dir "E:\pnpm-store"),执行任何 dsh 命令都会在引导阶段崩溃:
Error: UNKNOWN: unknown error, lstat 'C:\Users\xxx.dsh\profiles\node_modules@deepseek-ai\dsh'
at ensureSymlink (packages/boot/app-boot/src/profile.ts:198:11)
at healProfilesModuleFallback (packages/boot/app-boot/src/profile.ts:253:5)
at prepareProfile (apps/cli/src/profile-boot.ts:99:3)
errno: -4094, code: 'UNKNOWN', syscall: 'lstat'
原因
healProfilesModuleFallback 会在 $DSH_HOME/profiles/node_modules 下为依赖闭包中的每个包创建一个 junction,指向它的真实安装目录。DSH_HOME 默认是 ~/.dsh,在 Windows 上位于系统盘(C:),而仓库在(E:),于是产生了大量( C:) → (E:) 的跨卷 junction。
用户侧规避方法
把 Harness home 设到和仓库同一个卷:
[Environment]::SetEnvironmentVariable('DSH_HOME', 'E:\dsh-home', 'User')
再次启动即可解决问题。
All reactions