mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
🐛 Return correct exit code on node version conflict (#2526)
This commit is contained in:
parent
42742de876
commit
32dc10f289
|
@ -26,7 +26,7 @@ var nodeVersion = process.versions.node.split('.');
|
||||||
|
|
||||||
if (parseInt(nodeVersion[0], 10) < 14) {
|
if (parseInt(nodeVersion[0], 10) < 14) {
|
||||||
console.log(`\nYour Node.js version (${process.versions.node}) is too old to run n8n.\nPlease update to version 14 or later!\n`);
|
console.log(`\nYour Node.js version (${process.versions.node}) is too old to run n8n.\nPlease update to version 14 or later!\n`);
|
||||||
process.exit(0);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
require('@oclif/command').run()
|
require('@oclif/command').run()
|
||||||
|
|
Loading…
Reference in a new issue