exit on detection of not supported node version, #324

This commit is contained in:
azivner
2019-01-26 19:59:51 +01:00
parent a87f4d8653
commit e211dd65ad
3 changed files with 8 additions and 1 deletions

View File

@@ -20,6 +20,12 @@ const messagingService = require('./services/messaging');
const utils = require('./services/utils');
const sqlInit = require('./services/sql_init');
const port = require('./services/port');
const semver = require('semver');
if (!semver.satisfies(process.version, ">=10.5.0")) {
console.error("Trilium only supports node.js 10.5 and later");
process.exit(1);
}
let httpServer;