fix(build):Next.js 16 要求 Node.js >= 20.9.0 (#21)

* fix(build):
1、README.md / README-zh.md — Node.js 版本要求 >= 18 → >= 20
2、package.json — 新增 engines: { node: ">=20.9.0" }
3、ci.yml — node-version: 20 → 22(与 Dockerfile 一致)
4、.nvmrc — 新建,内容 22

Co-authored-by: humingfeng <humfsss@gmail.com>
This commit is contained in:
1/2极客 2026-03-17 09:01:04 +08:00 committed by GitHub
parent a58618a709
commit 0a9b5abe34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 3 deletions

View File

@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
22

View File

@ -74,7 +74,7 @@ https://github.com/user-attachments/assets/dbd013f6-9fab-43c5-a788-b47126cff7a8
### 环境要求
- **Node.js** >= 18
- **Node.js** >= 20
- **pnpm** >= 10
### 1. 克隆 & 安装

View File

@ -74,7 +74,7 @@ https://github.com/user-attachments/assets/b4ab35ac-f994-46b1-8957-e82fe87ff0e9
### Prerequisites
- **Node.js** >= 18
- **Node.js** >= 20
- **pnpm** >= 10
### 1. Clone & Install

View File

@ -3,6 +3,9 @@
"version": "0.1.0",
"private": true,
"license": "AGPL-3.0",
"engines": {
"node": ">=20.9.0"
},
"scripts": {
"postinstall": "cd packages/mathml2omml && npm run build && cd ../pptxgenjs && npm run build",
"dev": "next dev",