Skip to content

Commit

Permalink
fix: test error, must be on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Aug 29, 2024
1 parent 19e9d42 commit c2613db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const initIsNodeInstalled = async (
)
const toReturned = new ConfigData('node_installed')
return new Promise<ConfigData>((resolve) => {
const cmd = os.platform() === 'darwin' ? `which node` : `where node`
const cmd = os.platform() === 'win32' ? `where node` : `which node`
exec(cmd, (error, stdout, stderr) => {
if (error) {
mainLog.error(`exec error: ${error}`)
Expand Down

0 comments on commit c2613db

Please sign in to comment.