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
Only Get Stderr from Exec #371
Comments
Hmmm... this seems like a strange issue. I don't think this is a bug with shelljs, since it seems to work on your local machine. Are you checking the |
The coffee gets compiled first by gulp before shelljs runs.
e.g. a route:
The weird thing is,t hat it makes a complete dump, there is no file missing. The rest of the message is pretty much the same and does not really indicate an error.I just noticed now, that there is the If you tell me, that this is not related to |
PS:
|
@360disrupt What if you chain the statements with |
I am having a similar issue, what is your environment. I am currently using Electron with ShellJS. Also I am Webpack, no idea if this is relevant. |
I can't really say what it was. It works now, I guess the provider of the server may have changed something. My environment is |
@jeroenransijn @360disrupt if either of you have the time to help figure out the bug, that would be much appreciated. I suspect it's due to differences in your environment (we list the supported nodejs and iojs versions in the README, anything outside of that we'll need help supporting). Thanks! |
@nfischer I was actually not well researched on what I was trying to do. Exec, even with the async option, waits for the process to finish and then gives you back the result of your command. I ended up using |
It returns the child process, so you can use that to access stdout or stderr. I think this should work:
|
I will use |
@360disrupt if you can figure out what the issue is, please ping this thread again (or open a new issue). Thanks! |
@360disrupt @jeroenransijn were either of you able to identify the source of the issue? |
We did a big exec refactor, so I'm assuming this is no longer relevant. Holler if this issue comes back. |
I have the opposite problem to:
#92
On my local machine with nodemon everything works fine. On the server exec only gives me stderr and the code (which is
0
which equalsno error
).I'm using node v.5.0.0. And it is started with
pm2
on the server.I actually don't know if this is a bug or maybe s.th. with the server config.
The text was updated successfully, but these errors were encountered: