mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
20 lines
1.2 KiB
Diff
20 lines
1.2 KiB
Diff
diff --git a/src/setup_node_env/node_version_validator.js b/src/setup_node_env/node_version_validator.js
|
|
index 3f611e5a..f5c60c85 100644
|
|
--- a/src/setup_node_env/node_version_validator.js
|
|
+++ b/src/setup_node_env/node_version_validator.js
|
|
@@ -25,11 +25,11 @@ var pkg = require('../../package.json'); // Note: This is written in ES5 so we c
|
|
var currentVersion = process && process.version || null;
|
|
var rawRequiredVersion = pkg && pkg.engines && pkg.engines.node || null;
|
|
var requiredVersion = rawRequiredVersion ? 'v' + rawRequiredVersion : rawRequiredVersion;
|
|
-var isVersionValid = !!currentVersion && !!requiredVersion && currentVersion === requiredVersion; // Validates current the NodeJS version compatibility when Kibana starts.
|
|
+var isVersionValid = !!currentVersion && !!requiredVersion; // Validates current the NodeJS version compatibility when Kibana starts.
|
|
|
|
if (!isVersionValid) {
|
|
var errorMessage = 'Kibana does not support the current Node.js version ' + currentVersion + '. Please use Node.js ' + requiredVersion + '.'; // Actions to apply when validation fails: error report + exit.
|
|
|
|
console.error(errorMessage);
|
|
process.exit(1);
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|