Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Smith 9d0b983596
Merge eda42cf406 into f854c80421 2024-04-14 21:07:08 +01:00
si458 eda42cf406 set min to node 16
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-03-25 15:32:24 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -3936,8 +3936,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, '..', '..')); }

View File

@ -55,7 +55,7 @@
"yauzl": "2.10.0"
},
"engines": {
"node": ">=11.0.0"
"node": ">=16.0.0"
},
"repository": {
"type": "git",