mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
⚡ Check for correct Node.js version on start
This commit is contained in:
parent
69af5e7490
commit
a2b589880f
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue