From 19eb1235f5b42126e453ba48536bafe5ea7ab802 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Sun, 12 May 2024 15:37:47 +0100 Subject: [PATCH] set min to node 16 (#5955) Signed-off-by: si458 --- meshcentral.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meshcentral.js b/meshcentral.js index ad650558..046d6e8c 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -3968,8 +3968,8 @@ var meshserver = null; var childProcess = null; var previouslyInstalledModules = {}; function mainStart() { - // Check the NodeJS is version 10 or better. - if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 11) { console.log("MeshCentral requires Node v11 or above, current version is " + process.version + "."); return; } + // Check the NodeJS is version 16 or better. + if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 16) { console.log("MeshCentral requires Node v16 or above, current version is " + process.version + "."); return; } // If running within the node_modules folder, move working directory to the parent of the node_modules folder. if (__dirname.endsWith('\\node_modules\\meshcentral') || __dirname.endsWith('/node_modules/meshcentral')) { process.chdir(require('path').join(__dirname, '..', '..')); } diff --git a/package.json b/package.json index 66b42ae6..f70fe0a4 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "yauzl": "2.10.0" }, "engines": { - "node": ">=11.0.0" + "node": ">=16.0.0" }, "repository": { "type": "git",