Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Oct 21, 2024
1 parent 3b32ad0 commit 0e74dd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/bin/n8n
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ if (process.argv.length === 2) {
process.argv.push('start');
}

const ENFORCE_MIN_NODE_VERSION = process.env.E2E_TESTS !== 'true';
if (ENFORCE_MIN_NODE_VERSION) {
const ENFORCE_NODE_VERSION_RANGE = process.env.E2E_TESTS !== 'true';
if (ENFORCE_NODE_VERSION_RANGE) {
const satisfies = require('semver/functions/satisfies');
const nodeVersion = process.versions.node;
const {
engines: { node: supportedNodeVersions },
} = require('../package.json');
if (!satisfies(nodeVersion, supportedNodeVersions)) {
console.log(`
console.error(`
Your Node.js version ${nodeVersion} is currently not supported by n8n.
Please use a Node.js version that satisfies the following version range: ${supportedNodeVersions}
`);
Expand Down

0 comments on commit 0e74dd0

Please sign in to comment.