From 0c1f48ee869269a0f0f4bf06915d4002038511bc Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 25 Dec 2023 15:50:43 +0800 Subject: [PATCH] refactor(cli): update node version check --- packages/cli/src/commands/install/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/install/utils.ts b/packages/cli/src/commands/install/utils.ts index 975122240..0ddd9b769 100644 --- a/packages/cli/src/commands/install/utils.ts +++ b/packages/cli/src/commands/install/utils.ts @@ -28,7 +28,7 @@ import { seedByPool } from '../database/seed/index.js'; const pgRequired = new semver.SemVer('14.0.0'); export const validateNodeVersion = () => { - const required = [new semver.SemVer('18.12.0')]; + const required = [new semver.SemVer('20.9.0')]; const requiredVersionString = required.map((version) => '^' + version.version).join(' || '); const current = new semver.SemVer(execSync('node -v', { encoding: 'utf8', stdio: 'pipe' }));