mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Check for correct Node.js version on start
This commit is contained in:
@@ -37,6 +37,11 @@ if (!supportedCommands.includes(command)) {
|
||||
process.argv.push('--help');
|
||||
}
|
||||
|
||||
if (parseInt(process.versions.node.split('.')[0], 10) < 10) {
|
||||
console.log('\nThe Node.js version is too old to run n8n. Please use version 10 or later!\n');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
require('@oclif/command').run()
|
||||
.then(require('@oclif/command/flush'))
|
||||
.catch(require('@oclif/errors/handle'));
|
||||
|
||||
Reference in New Issue
Block a user