From 43b5ef4b62e86f14a3c524e5a67fa4aef7927063 Mon Sep 17 00:00:00 2001 From: YuanShiJiLoong <2450829984@qq.com> Date: Tue, 3 Mar 2026 22:06:11 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=20pnpm=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=AF=B4=E6=98=8E=E5=8F=8A=20approve-builds=20?= =?UTF-8?q?=E6=8C=87=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++++-- README.zh.md | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 96e5706..b9b75ef 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Just install and start writing. All features work out of the box. ### Requirements - **Node.js** 18+ -- **npm** 9+ +- **npm** 9+ or **pnpm** 8+ ### Installation @@ -95,6 +95,9 @@ cd author # Install dependencies npm install +# Or use pnpm (no phantom dependency issues) +# pnpm install +# pnpm approve-builds # Required by pnpm to activate native packages # Configure environment variables (optional) cp .env.example .env.local @@ -133,7 +136,7 @@ Download the latest installer from the [Releases](https://github.com/YuanShiJiLo ```bash git pull origin main -npm install +npm install # or: pnpm install && pnpm approve-builds npm run dev ``` diff --git a/README.zh.md b/README.zh.md index 2ec4936..4ed2108 100644 --- a/README.zh.md +++ b/README.zh.md @@ -83,7 +83,7 @@ ### 环境要求 - **Node.js** 18+ -- **npm** 9+ +- **npm** 9+ 或 **pnpm** 8+ ### 安装 @@ -96,6 +96,9 @@ cd author # 安装依赖 npm install +# 或使用 pnpm(无幽灵依赖问题) +# pnpm install +# pnpm approve-builds # pnpm 需要手动激活原生构建包 # 配置环境变量(可选) cp .env.example .env.local @@ -136,7 +139,7 @@ npm start ```bash git pull origin main -npm install +npm install # 或: pnpm install && pnpm approve-builds npm run dev ```