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 ```