docs: 添加 pnpm 支持说明及 approve-builds 指引
This commit is contained in:
1 parent
a2943f83c8
commit
43b5ef4b62
2 files changed
+10
-4
No files matched your search
@@ -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
|
||||
```
|
||||
|
||||
|
||||
+5
-2
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user