From d97e0b1f620e9a1c4e9ec6acb6f5c8c2dba1dddb Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 24 Sep 2023 11:40:06 -0700 Subject: [PATCH] Added warning for NodeJS <16 to upgrade to new version. --- meshcentral.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meshcentral.js b/meshcentral.js index 2e1fc02c..2b2bdf6c 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -1231,6 +1231,9 @@ function CreateMeshCentralServer(config, args) { obj.StartEx1b = async function () { var i; + // Add NodeJS version warning if needed + 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 + "."); } + // Setup certificate operations obj.certificateOperations = require('./certoperations.js').CertificateOperations(obj);