Skip to content

在windows 运行提示缺少运行依赖 js-yaml #83

Open

Description

@happyxiaod

Existing reports / 提交前查重

  • I searched existing issues and did not find the same problem / 我已搜索现有 Issue,没有发现相同问题

Affected area / 涉及区域

Startup or installation / 启动或安装

Operating system / 操作系统

Windows 11 x64

Installation method / 安装方式

Windows installer / Windows 安装包

WorkDSH version / WorkDSH 版本

3.0.0

DSH runtime version / DSH 运行时版本

不知道

Usage mode / 使用方式

Personal Desktop / 个人桌面端

Third-party plugins / 第三方插件

从运行日志确认,报错发生在 DSH 运行时加载依赖时,不是 Electron 本身缺少 js-yaml:

text

Cannot find package 'js-yaml'
imported from ...@deepseek-ai\dsh-app-boot\lib\index.js
进一步检查发现:

你运行的是 C:\soft\Workyisa-3.0.0-alpha.4-x64-Portable 中的便携版。
js-yaml 实际上存在于包内的 pnpm 存储目录,但 dsh-app-boot 所在位置无法解析到它。
构建目录中的 pnpm 符号链接,在便携版解压后变成了普通目录,导致原有依赖解析关系失效。因此不能简单地认为安装了 7-Zip 或重新打包一次就能解决。​
目前我还没有完成修复,也没有验证 NSIS 安装版是否存在同样问题。此前的 win-unpacked 检查能通过,但它不能替代对最终 ZIP 解压结果或安装后目录的验

Fresh Profile comparison / 全新 Profile 对照结果

Still reproduces in a fresh Profile / 全新 Profile 仍可复现

What happened? / 实际发生了什么?

进一步检查发现:

你运行的是 C:\soft\Workyisa-3.0.0-alpha.4-x64-Portable 中的便携版。
js-yaml 实际上存在于包内的 pnpm 存储目录,但 dsh-app-boot 所在位置无法解析到它。
构建目录中的 pnpm 符号链接,在便携版解压后变成了普通目录,导致原有依赖解析关系失效。因此不能简单地认为安装了 7-Zip 或重新打包一次就能解决。

Reproduction steps / 复现步骤

进一步检查发现:

你运行的是 C:\soft\Workyisa-3.0.0-alpha.4-x64-Portable 中的便携版。
js-yaml 实际上存在于包内的 pnpm 存储目录,但 dsh-app-boot 所在位置无法解析到它。
构建目录中的 pnpm 符号链接,在便携版解压后变成了普通目录,导致原有依赖解析关系失效。因此不能简单地认为安装了 7-Zip 或重新打包一次就能解决。

Expected behavior / 预期结果

进一步检查发现:

你运行的是 C:\soft\Workyisa-3.0.0-alpha.4-x64-Portable 中的便携版。
js-yaml 实际上存在于包内的 pnpm 存储目录,但 dsh-app-boot 所在位置无法解析到它。
构建目录中的 pnpm 符号链接,在便携版解压后变成了普通目录,导致原有依赖解析关系失效。因此不能简单地认为安装了 7-Zip 或重新打包一次就能解决。

Reproduction frequency / 复现频率

Every time / 每次都能复现

Logs or error details / 日志或错误信息

No response

Screenshots or recordings / 截图或录屏

No response

Last known working version / 最后正常版本

No response

Additional context / 补充信息

No response

Sensitive information / 敏感信息

  • I removed API keys, tokens, account details, and other sensitive data from my attachments / 我已从附件中移除 API Key、Token、账号信息等敏感内容

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions