-
Notifications
You must be signed in to change notification settings - Fork 738
ShellJS works in Electron in one app, but gives Error 'Unable to find a path to node binary' in another #704
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
Comments
As a follow up. I uninstalled shelljs 0.7.7 and installed 0.7.5 in it's place, and it's now running the commands just like in my other app. Seems to be something that has changed in shells since 0.7.5 that has caused this break. |
We don't support electron yet. See this wiki page. Do you see this message when invoking non-exec commands? #636 introduced this. This was intended to give better control for Electron support (e.g. If you're interested in electron support, I'll gladly review a pull request. |
Closing this, because we don't provide electron support. If someone wants to help us out here, we'll gladly revisit this. |
works just fine. I wonder why there is a need to specify this manually if |
I'm not opposed to trying |
I had tried with
|
@mvkanha do you have node installed on your system? |
@nfischer Yes I have installed node on my system |
@mvkanha then specify the full path to your installed |
The following worked for me, since the output is a ShellString
|
@Spiddy I updated the wiki with a modification of your suggestion (We explicitly support |
After bundling,
|
How can we solve this after bundling? |
I also encountered this problem |
Node version (or tell us if you're using electron or some other framework):
Electron 1.6.2 (non-working app installed globally)
Electron 1.4.13 (working app installed as dev dependency for this app only).
I apparently installed Electron locally on one folder, and then globally later.
ShellJS version (the most recent version/Github branch you see the bug on):
ShellJS 0.7.7 (non-working app)
ShellJS 0.7.5 (working app)
Operating system:
MacOS and Ubuntu Linux 16.04 LTS
Description of the bug:
In one setup I'm using ShellJS with no issue running shells.exec() and my command runs fine.
In the new setup I'm using ShellJS with a globally installed Electron, and I get an 'Unable to find a path to node binary' message. It suggests setting the path manually, but I see some issues with this. If I distribute the app, this won't work for everyone else, right?
Example ShellJS command to reproduce the error:
Just pick one.
The text was updated successfully, but these errors were encountered: