diff --git a/apps/studio/electron/main/requirements/index.ts b/apps/studio/electron/main/requirements/index.ts index ddb0cfabe..ecda4cf75 100644 --- a/apps/studio/electron/main/requirements/index.ts +++ b/apps/studio/electron/main/requirements/index.ts @@ -23,9 +23,10 @@ function checkGitInstallation(): boolean { function checkNodeInstallation(): boolean { try { - execSync('node --version', { stdio: 'ignore' }); + execSync('npm --version', { stdio: 'ignore' }); return true; } catch (error) { + console.error('Npm check failed:', error); return false; } }