Exec command Uncaught Error: Command failed: which node


#1

I just try to run ```console.log(child_process.execSync(‘sh -c “which node”’).toString());````

that’s the error i get :frowning:

It’s a dmg app built with electron-builder and the same command works on a prebuilt

Any advice?


#2

typo: console.log(child_process.execSync(“which node”).toString());