Skip to content

Commit

Permalink
chore: update min node version for development (#175663)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 authored Feb 28, 2023
1 parent 4e73225 commit f2a822f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/npm/preinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const majorNodeVersion = parseInt(nodeVersion[1]);
const minorNodeVersion = parseInt(nodeVersion[2]);
const patchNodeVersion = parseInt(nodeVersion[3]);

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

0 comments on commit f2a822f

Please sign in to comment.