Skip to content

Commit

Permalink
Check npm instead of node
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite committed Dec 11, 2024
1 parent 2d01986 commit edb4fb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/studio/electron/main/requirements/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit edb4fb3

Please sign in to comment.