core: set version check to 22

This commit is contained in:
undefined committed 2025-06-11 13:52:26 +08:00
1 parent 6213d0a90a
commit 47ff314c83
1 file changed
+1 -1
+1 -1
View File
@@ -1,5 +1,5 @@
const versionNum = +process.version.replace(/v/gim, '').split('.')[0];
if (versionNum < 18) throw new Error('NodeJS >=18 required');
if (versionNum < 22) throw new Error('NodeJS >=22 required');
console.log('Process', process.pid, 'running as', process.env.NODE_APP_INSTANCE === '0' ? 'master' : 'worker');
if (!global.Hydro) {