shelljs: exec doesn't work in electron
Node 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! 😃
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 38 (22 by maintainers)
Commits related to this issue
- debug \#480 — committed to shelljs/shelljs by ariporad 8 years ago
@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
setting exec to async seems to work.
Set it like any regular variable.
Thanks to hazim-j above, I got shelljs working within electron like this:
Closing this because we’ve documented a workaround on the wiki. Please comment if this workaround is insufficient.
@ariporad Suggestion:
Check the semantics of
which()to make sure this will work.