An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:memo: Align pnpm installation instructions with CI https://github.com/siyuan-note/siyuan/issues/19331
Daniel11aa37d1cada
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex e8a53e7e22..3f037eb31b 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -10,7 +10,11 @@Electron 44 requires macOS 13 or later and supports only 64-bit Windows and Linux builds.-Install pnpm: `npm install -g [email protected]`+Install Node.js 24 to match CI, then install pnpm using npm: `npm install -g [email protected]`.++Use the version specified by the `packageManager` field in [`app/package.json`](../app/package.json); update the version in the command above if that field changes. This uses the same installation method as [CI](workflows/cd.yml).++Do not mix this method with pnpm's standalone installation scripts (`@pnpm/exe`). Different pnpm distributions can change the `packageManagerDependencies` metadata in `app/pnpm-lock.yaml`, causing unrelated lockfile changes. If you previously installed standalone pnpm, remove it from `PATH` or uninstall it so that the npm-installed pnpm takes precedence. Before installing dependencies, check `pnpm --version` against `packageManager` and locate the executable with `where.exe pnpm` on Windows or `command -v pnpm` on macOS/Linux. Review lockfile changes before committing and exclude metadata-only changes caused by switching installation methods.<details><summary>For China mainland</summary>diff --git a/.github/CONTRIBUTING.zh-CN.md b/.github/CONTRIBUTING.zh-CN.mdindex 02f334bfdb..495c8f9bb8 100644--- a/.github/CONTRIBUTING.zh-CN.md+++ b/.github/CONTRIBUTING.zh-CN.md@@ -10,7 +10,11 @@Electron 44 要求 macOS 13 或更高版本,Windows 和 Linux 仅支持 64 位构建。-安装 pnpm:`npm install -g [email protected]`+安装与 CI 一致的 Node.js 24,然后通过 npm 安装 pnpm:`npm install -g [email protected]`。++版本以 [`app/package.json`](../app/package.json) 的 `packageManager` 字段为准;该字段变更后,请相应调整上述命令中的版本号。此安装方式与 [CI](workflows/cd.yml) 保持一致。++不要与 pnpm 独立安装脚本(`@pnpm/exe`)混用。不同的 pnpm 发行包可能改变 `app/pnpm-lock.yaml` 中的 `packageManagerDependencies` 元数据,产生与依赖无关的锁文件变更。如果此前安装过独立版 pnpm,请将其移出 `PATH` 或卸载,确保优先使用通过 npm 安装的 pnpm。安装依赖前,请用 `pnpm --version` 核对版本是否与 `packageManager` 一致,并在 Windows 上用 `where.exe pnpm`、在 macOS/Linux 上用 `command -v pnpm` 检查可执行文件的位置。提交前请检查锁文件差异,排除因切换安装方式产生的纯元数据变更。<details><summary>适用于中国大陆</summary>