mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Drop EOL Node 14
This commit is contained in:
parent
2478a7194e
commit
b0ac9d64dd
@ -122,6 +122,6 @@
|
|||||||
"supertest": "6.3.3"
|
"supertest": "6.3.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
packages/node_modules/node-red/lib/red.js
vendored
2
packages/node_modules/node-red/lib/red.js
vendored
@ -33,7 +33,7 @@ if (NODE_MAJOR_VERSION > 14) {
|
|||||||
|
|
||||||
function checkVersion(userSettings) {
|
function checkVersion(userSettings) {
|
||||||
var semver = require('semver');
|
var semver = require('semver');
|
||||||
if (!semver.satisfies(process.version,">=14.0.0")) {
|
if (!semver.satisfies(process.version,">=16.0.0")) {
|
||||||
// TODO: in the future, make this a hard error.
|
// TODO: in the future, make this a hard error.
|
||||||
// var e = new Error("Unsupported version of Node.js");
|
// var e = new Error("Unsupported version of Node.js");
|
||||||
// e.code = "unsupported_version";
|
// e.code = "unsupported_version";
|
||||||
|
2
packages/node_modules/node-red/package.json
vendored
2
packages/node_modules/node-red/package.json
vendored
@ -47,6 +47,6 @@
|
|||||||
"bcrypt": "5.1.0"
|
"bcrypt": "5.1.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
packages/node_modules/node-red/red.js
vendored
2
packages/node_modules/node-red/red.js
vendored
@ -346,7 +346,7 @@ httpsPromise.then(function(startupHttps) {
|
|||||||
} catch(err) {
|
} catch(err) {
|
||||||
if (err.code == "unsupported_version") {
|
if (err.code == "unsupported_version") {
|
||||||
console.log("Unsupported version of Node.js:",process.version);
|
console.log("Unsupported version of Node.js:",process.version);
|
||||||
console.log("Node-RED requires Node.js v8.9.0 or later");
|
console.log("Node-RED requires Node.js v16 or later");
|
||||||
} else {
|
} else {
|
||||||
console.log("Failed to start server:");
|
console.log("Failed to start server:");
|
||||||
if (err.stack) {
|
if (err.stack) {
|
||||||
|
@ -19,6 +19,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.x"
|
"node": ">=16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user