Skip to content

Commit a22e07f

Browse files
Merge pull request #299 from thearyanag/269--add-node-version-check-during-build
add node version check
2 parents 69495d4 + 9a3f0b9 commit a22e07f

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
**Prerequisites (MUST):**
3030

3131
- [Python 2.7+](https://www.python.org/downloads/)
32-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
32+
- [Node.js 23.1+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
3333
- [pnpm](https://pnpm.io/installation)
3434

3535
### Edit the .env file

README_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
**前置要求(必须):**
2525

26-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
26+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2727
- Nodejs安装
2828
- [pnpm](https://pnpm.io/installation)
2929
- 使用pnpm

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ _As seen powering [@DegenSpartanAI](https://x.com/degenspartanai) and [@MarcAInd
1919

2020
**Prerequisites (MUST):**
2121

22-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
22+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2323
- [pnpm](https://pnpm.io/installation)
2424

2525
### Edit the .env file

docs/README_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
**前置要求(必须):**
2525

26-
- [Node.js 22+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
26+
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2727
- Nodejs安装
2828
- [pnpm](https://pnpm.io/installation)
2929
- 使用pnpm

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
},
3131
"engines": {
32-
"node": ">=22"
32+
"node": ">=23"
3333
},
3434
"dependencies": {
3535
"ollama-ai-provider": "^0.16.1",

pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/build.sh

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22

3+
# Check Node.js version
4+
REQUIRED_NODE_VERSION=23
5+
CURRENT_NODE_VERSION=$(node -v | cut -d'.' -f1 | sed 's/v//')
6+
7+
if (( CURRENT_NODE_VERSION < REQUIRED_NODE_VERSION )); then
8+
echo "Error: Node.js version must be $REQUIRED_NODE_VERSION or higher. Current version is $CURRENT_NODE_VERSION."
9+
exit 1
10+
fi
11+
312
# Navigate to the script's directory
413
cd "$(dirname "$0")"/..
514

0 commit comments

Comments
 (0)