0

i build an electron's app ,which use nodejs to exec cli when in debugger, it execs some commands like cp , open ,and even "code" ,all of them are ok // code is cli which can open vscode's projects when i use electron-packager . to package this app and run it ,it shows can not find code command . i think it maybe a problem from electron ..

my env is : 1.mac 2.electron v13.1.6 3.v12.18.0

Thanks a lot!

joe
  • 41
  • 2

1 Answers1

0

i found the same question from here npm: command not found when executing commands in Electron app

and got the answer from here and there 1.https://github.com/electron/electron/issues/7688 2.https://github.com/sindresorhus/fix-path

joe
  • 41
  • 2