Electron compatibility
Nate Fischer edited this page Jun 24, 2019
·
3 revisions
We currently do not support compatibility with running ShellJS within electron, but are planning to begin work for this.
Known issues:
-
rm
has issues deleting ASAR archives (See #618, #628)-
Known workaround: set
process.noAsar = true
before usingshell.rm()
-
Known workaround: set
-
exec
is currently broken (See #480)-
Known workaround: set
config.execPath
to the absolute path of your Node binary. You can usually runwhich node
orwhich nodejs
in your terminal to find this. You may have success usingshell.config.execPath = shell.which('node').toString()
, but this is not guaranteed to work! See #704 for more discussion.
-
Known workaround: set
If you find any issues with electron support, please file a Github issue and we'll look at it promptly. If you think these workarounds are insufficient, please comment on those issues and we'll take that into consideration.