From edb4fb3d6cd7d5587a765fc368b239e451fb62e5 Mon Sep 17 00:00:00 2001 From: Kiet Ho Date: Wed, 11 Dec 2024 15:00:24 -0500 Subject: [PATCH] Check npm instead of node --- apps/studio/electron/main/requirements/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }