无法链接到xpyjs/gantt-coreE:\codes\xgantt2\schueduer_跳过节假日3_okk1\examples\dynamicEmbedGantt pnpm i ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In : xpyjs/gantt-coreworkspace:* is in the dependencies but no package named xpyjs/gantt-core is present in the workspace This error happened while installing a direct dependency of E:\codes\xgantt2\schueduer_跳过节假日3_okk1\examples\dynamicEmbedGanttexamples/dynamicEmbedGantt 目录有自己的 pnpm-workspace.yaml导致它成为一个独立的 workspace不受根目录 workspace 管理。这个错误的 workspace 配置指向了 …/packages/而不是根目录的 packages/所以找不到 xpyjs/gantt-core。需要删除这个错误的配置文件问题出在 examples/dynamicEmbedGantt/pnpm-workspace.yaml 文件上 — 它创建了一个独立的 workspace 配置覆盖了根目录的配置导致 xpyjs/gantt-core 无法被找到。删除后该目录现在受根目录 pnpm-workspace.yaml 统一管理可以看到 packages/core 中的 xpyjs/gantt-core。现在安装正常进行中显示 “Scope: all 11 workspace projects”。