Skip to content

Commit

Permalink
Merge pull request #136794 from alex-brs/npm-fix-msg
Browse files Browse the repository at this point in the history
build/npm/preinstall: fix error message for node version
  • Loading branch information
jrieken authored Nov 10, 2021
2 parents 35843dd + f8ee1a1 commit 654829a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/npm/preinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let err = false;
const majorNodeVersion = parseInt(/^(\d+)\./.exec(process.versions.node)[1]);

if (majorNodeVersion < 14 || majorNodeVersion >= 17) {
console.error('\033[1;31m*** Please use node.js versions >=14 and <=17.\033[0;0m');
console.error('\033[1;31m*** Please use node.js versions >=14 and <17.\033[0;0m');
err = true;
}

Expand Down

0 comments on commit 654829a

Please sign in to comment.