🐛 Return correct exit code on node version conflict (#2526)

This commit is contained in:
Anuj Kapoor 2021-12-11 22:11:18 +05:30 committed by GitHub
parent 42742de876
commit 32dc10f289
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ var nodeVersion = process.versions.node.split('.');
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`);
process.exit(0);
process.exit(1);
}
require('@oclif/command').run()