mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Check on startup for Node.js version 12.9 or later
This commit is contained in:
@@ -22,8 +22,10 @@ if (process.argv.length === 2) {
|
|||||||
process.argv.push('start');
|
process.argv.push('start');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parseInt(process.versions.node.split('.')[0], 10) < 10) {
|
const nodeVersion = process.versions.node.split('.');
|
||||||
console.log('\nThe Node.js version is too old to run n8n. Please use version 10 or later!\n');
|
|
||||||
|
if (parseInt(nodeVersion[0], 10) < 12 || parseInt(nodeVersion[0], 10) === 12 && parseInt(nodeVersion[1], 10) < 9) {
|
||||||
|
console.log(`\nYour Node.js version (${process.versions.node}) is too old to run n8n.\nPlease update to version 12.9 or later!\n`);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user