File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 6565 "typescript-eslint" : " ^8.43.0"
6666 },
6767 "engines" : {
68- "node" : " >= 22.12.0"
68+ "node" : " ^20.19.0 || ^ 22.12.0 || >=23 "
6969 }
7070}
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ import {version} from 'node:process';
1010
1111const [ major , minor ] = version . substring ( 1 ) . split ( '.' ) . map ( Number ) ;
1212
13+ if ( major === 20 && minor < 19 ) {
14+ console . error (
15+ `ERROR: \`chrome-devtools-mcp\` does not support Node ${ process . version } . Please upgrade to Node 20.19.0 LTS or a newer LTS.` ,
16+ ) ;
17+ process . exit ( 1 ) ;
18+ }
19+
1320if ( major === 22 && minor < 12 ) {
1421 console . error (
1522 `ERROR: \`chrome-devtools-mcp\` does not support Node ${ process . version } . Please upgrade to Node 22.12.0 LTS or a newer LTS.` ,
@@ -19,7 +26,7 @@ if (major === 22 && minor < 12) {
1926
2027if ( major < 20 ) {
2128 console . error (
22- `ERROR: \`chrome-devtools-mcp\` does not support Node ${ process . version } . Please upgrade to Node 20 LTS or a newer LTS.` ,
29+ `ERROR: \`chrome-devtools-mcp\` does not support Node ${ process . version } . Please upgrade to Node 20.19.0 LTS or a newer LTS.` ,
2330 ) ;
2431 process . exit ( 1 ) ;
2532}
You can’t perform that action at this time.
0 commit comments