0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(cli): update node version check

This commit is contained in:
Gao Sun 2023-12-25 15:50:43 +08:00
parent 8d5ff29e27
commit 0c1f48ee86
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -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' }));