set min to node 16 (#5955)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
274bb525a5
commit
19eb1235f5
|
@ -3968,8 +3968,8 @@ var meshserver = null;
|
||||||
var childProcess = null;
|
var childProcess = null;
|
||||||
var previouslyInstalledModules = {};
|
var previouslyInstalledModules = {};
|
||||||
function mainStart() {
|
function mainStart() {
|
||||||
// Check the NodeJS is version 10 or better.
|
// Check the NodeJS is version 16 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; }
|
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 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, '..', '..')); }
|
if (__dirname.endsWith('\\node_modules\\meshcentral') || __dirname.endsWith('/node_modules/meshcentral')) { process.chdir(require('path').join(__dirname, '..', '..')); }
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
"yauzl": "2.10.0"
|
"yauzl": "2.10.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=11.0.0"
|
"node": ">=16.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue