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:
parent
8d5ff29e27
commit
0c1f48ee86
1 changed files with 1 additions and 1 deletions
|
@ -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' }));
|
||||
|
||||
|
|
Loading…
Reference in a new issue