Skip to content

Commit

Permalink
Merge pull request #884 from onlook-dev/feat/requirement-checks
Browse files Browse the repository at this point in the history
Check npm instead of node
  • Loading branch information
Kitenite authored Dec 11, 2024
2 parents 2d01986 + edb4fb3 commit 60f6eb0
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 60f6eb0

Please sign in to comment.