From 42d819a0923fdcaf8e3fe66bad43d9d3936a402d Mon Sep 17 00:00:00 2001 From: humingfeng Date: Mon, 16 Mar 2026 22:02:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):Next.js=2016=20=E8=A6=81=E6=B1=82=20?= =?UTF-8?q?Node.js=20>=3D=2020.9.0=20*=20fix(build):=201=E3=80=81README.md?= =?UTF-8?q?=20/=20README-zh.md=20=E2=80=94=20Node.js=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=A6=81=E6=B1=82=20>=3D=2018=20=E2=86=92=20>=3D=2020=202?= =?UTF-8?q?=E3=80=81package.json=20=E2=80=94=20=E6=96=B0=E5=A2=9E=20engine?= =?UTF-8?q?s:=20{=20node:=20">=3D20.9.0"=20}=203=E3=80=81ci.yml=20?= =?UTF-8?q?=E2=80=94=20node-version:=2020=20=E2=86=92=2022=EF=BC=88?= =?UTF-8?q?=E4=B8=8E=20Dockerfile=20=E4=B8=80=E8=87=B4=EF=BC=89=204?= =?UTF-8?q?=E3=80=81.nvmrc=20=E2=80=94=20=E6=96=B0=E5=BB=BA=EF=BC=8C?= =?UTF-8?q?=E5=86=85=E5=AE=B9=2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 2 +- .nvmrc | 1 + README-zh.md | 2 +- README.md | 2 +- package.json | 3 +++ 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b34d5ad7..8dec8de0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - run: pnpm install --frozen-lockfile diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..2bd5a0a98 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/README-zh.md b/README-zh.md index 9e2ee78f4..bd73a80a6 100644 --- a/README-zh.md +++ b/README-zh.md @@ -74,7 +74,7 @@ https://github.com/user-attachments/assets/dbd013f6-9fab-43c5-a788-b47126cff7a8 ### 环境要求 -- **Node.js** >= 18 +- **Node.js** >= 20 - **pnpm** >= 10 ### 1. 克隆 & 安装 diff --git a/README.md b/README.md index 25a2b882d..866f1bcc1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 32b0e92ce..ed502a525 100644 --- a/package.json +++ b/package.json @@ -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",