Added warning for NodeJS <16 to upgrade to new version.

Ylian Saint-Hilaire committed Sep 24, 2023 at 11:40 UTC d97e0b1f620e9a1c4e9ec6acb6f5c8c2dba1dddb
1 file changed +3
meshcentral.js
+3
@@ -1231,6 +1231,9 @@ function CreateMeshCentralServer(config, args) {
1231 obj.StartEx1b = async function () {
1232 var i;
1233
1234 + // Add NodeJS version warning if needed
1235 + if (Number(process.version.match(/^v(\d+\.\d+)/)[1]) < 16) { addServerWarning("MeshCentral will require Node v16 or above in the future, your current version is " + process.version + "."); }
1236 +
1237 // Setup certificate operations
1238 obj.certificateOperations = require('./certoperations.js').CertificateOperations(obj);
1239