New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shelljs.exec cannot find app.asar/node_modules/shelljs/src/exec-child.js #881
Comments
This specific message is unexpected. $ find node_modules/ -name exec-child.js That being said, we have never supported electron. We list some known issues with possible workarounds. If there's an obvious fix for an electron-related issue, we're happy to consider it, but maintenance has only been best-effort, not guaranteed. |
Figured out the issue. Because of the workaround you listed, it is using the system node.js, which doesnt know about asar archives. I am fixing this by migrating back to nodes native child_process.exec/execSync |
I see. In this case, this is likely not fixable in |
Node version (or tell us if you're using electron or some other framework):
electron 1.8.6 prebuilt from electron-builder
ShellJS version (the most recent version/Github branch you see the bug on):
shelljs 0.8.2
Operating system:
ubuntu 18.04
Description of the bug:
I am building an electron app using shelljs, and after packaging with electron-builder, using shelljs.exec fails, returning null and printing the following stacktrace on the console:
Example ShellJS command to reproduce the error:
The text was updated successfully, but these errors were encountered: