1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #4086 from node-red/version-check

Bump minimum nodejs version supported to match documented value
This commit is contained in:
Nick O'Leary 2023-03-02 21:16:24 +00:00 committed by GitHub
commit b19a679d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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