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:
parent
a58618a709
commit
0a9b5abe34
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: pnpm
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
@ -74,7 +74,7 @@ https://github.com/user-attachments/assets/dbd013f6-9fab-43c5-a788-b47126cff7a8
|
||||
|
||||
### 环境要求
|
||||
|
||||
- **Node.js** >= 18
|
||||
- **Node.js** >= 20
|
||||
- **pnpm** >= 10
|
||||
|
||||
### 1. 克隆 & 安装
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user