exec doesn't work in electron
See original GitHub issueNode version:
6.2.0
ShellJS version
0.7.0
Operating system:
Mac
Description of the bug:
I am trying to run the following command (that I copied from docs) in my electron console.
Any idea, why this would be having. As I want to return the version number for checks. Other commands such as which
are working but just exec
Thank you! 😃
Issue Analytics
- State:
- Created 7 years ago
- Comments:38 (22 by maintainers)
Top Results From Across the Web
Cannot execute shell command from Electron packaged app
I want to execute an python application only by name from Nodejs module called child_process. When the application isn't packaged it works, but ......
Read more >Quick Start | Electron
This guide will step you through the process of creating a barebones Hello World app in Electron, similar to electron/electron-quick-start.
Read more >Child process | Node.js v19.3.0 Documentation
The child_process.execFile() function is similar to child_process.exec() except that it does not spawn a shell by default. Rather, the specified executable file ...
Read more >Common Configuration - electron-builder
Works when npmRebuild is set to true . Resolving to false will skip dependencies install or rebuild. If provided and node_modules are missing,...
Read more >Dynamically Execute JavaScript in ElectronJS - GeeksforGeeks
For Electron to work, node and npm need to be pre-installed in the system. ... In case, the executed code does not return...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
setting exec to async seems to work.
@nfischer Hi, glad to see there is a workaround. Tried this in an electron app and got failed after throwing an error
May I know is there a compatible library version to make this work? Thank you