set min to node 16 (#5955)
Signed-off-by: si458 <simonsmith5521@gmail.com>
Simon Smith committed
May 12, 2024 at 15:37 UTC
19eb1235f5b42126e453ba48536bafe5ea7ab802
2 files changed
+3
-3
meshcentral.js
+2
-2
@@ -3968,8 +3968,8 @@ var meshserver = null;
3968
var childProcess = null;
3969
var previouslyInstalledModules = {};
3970
function mainStart() {
3971
- // Check the NodeJS is version 10 or better.
3972
- if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 11) { console.log("MeshCentral requires Node v11 or above, current version is " + process.version + "."); return; }
3971
+ // Check the NodeJS is version 16 or better.
3972
+ if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 16) { console.log("MeshCentral requires Node v16 or above, current version is " + process.version + "."); return; }
3973
3974
// If running within the node_modules folder, move working directory to the parent of the node_modules folder.
3975
if (__dirname.endsWith('\\node_modules\\meshcentral') || __dirname.endsWith('/node_modules/meshcentral')) { process.chdir(require('path').join(__dirname, '..', '..')); }
package.json
+1
-1
@@ -55,7 +55,7 @@
55
"yauzl": "2.10.0"
56
},
57
"engines": {
58
- "node": ">=11.0.0"
58
+ "node": ">=16.0.0"
59
},
60
"repository": {
61
"type": "git",