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

This commit is contained in:
Ylian Saint-Hilaire 2023-09-24 11:40:06 -07:00
parent 0a147a18d4
commit d97e0b1f62

View File

@ -1231,6 +1231,9 @@ function CreateMeshCentralServer(config, args) {
obj.StartEx1b = async function () { obj.StartEx1b = async function () {
var i; 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 // Setup certificate operations
obj.certificateOperations = require('./certoperations.js').CertificateOperations(obj); obj.certificateOperations = require('./certoperations.js').CertificateOperations(obj);