Drop EOL Node 16

Changing the End-of-Life Date for Node.js 16 to September 11th, 2023
https://nodejs.org/en/blog/announcements/nodejs16-eol
This commit is contained in:
Rotzbua
2023-09-04 17:06:32 +02:00
parent b0ac9d64dd
commit c50c1b352c
7 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ if (NODE_MAJOR_VERSION > 14) {
function checkVersion(userSettings) {
var semver = require('semver');
if (!semver.satisfies(process.version,">=16.0.0")) {
if (!semver.satisfies(process.version,">=18.0.0")) {
// TODO: in the future, make this a hard error.
// var e = new Error("Unsupported version of Node.js");
// e.code = "unsupported_version";

View File

@@ -47,6 +47,6 @@
"bcrypt": "5.1.0"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}

View File

@@ -346,7 +346,7 @@ httpsPromise.then(function(startupHttps) {
} catch(err) {
if (err.code == "unsupported_version") {
console.log("Unsupported version of Node.js:",process.version);
console.log("Node-RED requires Node.js v16 or later");
console.log("Node-RED requires Node.js v18 or later");
} else {
console.log("Failed to start server:");
if (err.stack) {