File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,7 @@ async function createChildVitestProcess(pkg: VitestPackage) {
261
261
const env = getConfig ( ) . env || { }
262
262
const execPath = await findNode ( vscode . workspace . workspaceFile ?. fsPath || pkg . cwd )
263
263
const execVersion = await getNodeJsVersion ( execPath )
264
- if ( ! execVersion ) {
265
- log . error ( '[API]' , `Failed to get Node.js version from ${ execPath } ` )
266
- throw new Error ( 'Failed to get Node.js version' )
267
- }
268
- if ( ! gte ( execVersion , minimumNodeVersion ) ) {
264
+ if ( execVersion && ! gte ( execVersion , minimumNodeVersion ) ) {
269
265
const errorMsg = `Node.js version ${ execVersion } is not supported. Minimum required version is ${ minimumNodeVersion } `
270
266
log . error ( '[API]' , errorMsg )
271
267
throw new Error ( errorMsg )
You can’t perform that action at this time.
0 commit comments