Skip to content

Commit eee3294

Browse files
authored
build: update preinstall check for [email protected] (microsoft#253248)
1 parent 387588c commit eee3294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/npm/preinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const minorNodeVersion = parseInt(nodeVersion[2]);
99
const patchNodeVersion = parseInt(nodeVersion[3]);
1010

1111
if (!process.env['VSCODE_SKIP_NODE_VERSION_CHECK']) {
12-
if (majorNodeVersion < 20 || (majorNodeVersion === 20 && minorNodeVersion < 18) || (majorNodeVersion === 20 && minorNodeVersion === 18 && patchNodeVersion < 1)) {
13-
console.error('\x1b[1;31m*** Please use Node.js v20.18.1 or later for development.\x1b[0;0m');
12+
if (majorNodeVersion < 22 || (majorNodeVersion === 22 && minorNodeVersion < 15) || (majorNodeVersion === 22 && minorNodeVersion === 15 && patchNodeVersion < 1)) {
13+
console.error('\x1b[1;31m*** Please use Node.js v22.15.1 or later for development.\x1b[0;0m');
1414
throw new Error();
1515
}
1616
}

0 commit comments

Comments
 (0)