Repository navigation
启动问题 #11726
Replies: 3 comments
|
环境 每次启动失败,错误完全一致。 报错核心 涉及预设:preset-ptc、preset-minimal、preset-cordis 堆栈关键行: 已排除的因素 日志 |
|
那一行不在你的配置里,是 web-app 预设插进去的。
- insert:
- id: preset-cordis
name: '@deepseek-ai/dsh-agent-preset'插件行的名字是从 profile 目录导入的( 先查一个目录: 有没有
包本身在仓库里( 只读了 master |
|
抱歉只能在邮件里回复您,我无法连上外网。我发现确实没有dsh-agent-preset这个文件,我添加了之后又出现了新的问题
之后我删除软件重下发现还是无法打开(dsh-agent-preset文件缺失)
…---原始邮件---
发件人: ***@***.***>
发送时间: 2026年11月1日(周日) 晚上7:28
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [deepseek-ai/deepseek-harness] 启动问题 (Discussion #11726)
那一行不在你的配置里,是 web-app 预设插进去的。
packages/bundle/web-app/presets/cordis.patch.yml:4-6 里有这么一条:
- insert: - id: preset-cordis name: ***@***.***/dsh-agent-preset'
插件行的名字是从 profile 目录导入的(packages/boot/app-boot/src/index.ts:1029 的 entry.parent.tree.import(entry.options.name)),所以 Node 会从 C:\Users\<user>\.dsh\profiles\desktop\ 往上找 node_modules,找不到就是你现在这条 Cannot find package ... imported from ...\profiles\desktop\。
先查一个目录:
dir ***@***.***"
有没有 dsh-agent-preset 这一项?
没有:profile 的依赖没装完。profile 用的是 hoisted 布局(packages/boot/app-boot/src/profile.ts:184-189 的 nodeLinker: hoisted),装完它会出现在这个目录的顶层。补装:
dsh plugin --profile desktop install
(这条命令是 profile.ts:658-661 报错文案里给的。)清空 ~/.dsh 只会重建 package.json / cordis.patch.yml / pnpm-workspace.yaml(initProfile,profile.ts:198-217,里面没有安装动作);依赖是之后单独装的一步,断网、代理、registry 不通就停在这个状态,而界面只会告诉你"包找不到"。
有:那就不是缺包,是解析路径的问题(asar 里的 dsh 安装锚点和 profile 的 node_modules 谁先命中,resolveBundleDir 在 profile.ts:651-662)。这种情况把 ***@***.*** 的完整列表和那条 stack 全文贴上来。
包本身在仓库里(packages/preset/agent-preset,package.json 的 name 就是 @deepseek-ai/dsh-agent-preset,也是 packages/bundle/web-app/package.json:59 的依赖),所以这不是"官方少打了一个包"。
只读了 master ce7073d 的源码,没在你的机器上看过实际目录。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
All reactions