Skip to content
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

forever myapp.js results in exception if node.exe is in a path containing spaces. #34

Closed
mrassinger opened this issue May 13, 2013 · 4 comments

Comments

@mrassinger
Copy link

Platform: win7-x64
Node: C:\Program Files\nodejs\node.exe

If I use forever I get an exception:

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:975:11)
at Process._handle.onexit (child_process.js:766:34)

Reason: the variable command is "C:\Program" in monitor.js (line 225):

cmdarr = this.command.trim().split(/\s+/);
command = this.command;
args = this.args;

if (cmdarr.length > 1) {
command = cmdarr[0];
args = cmdarr.slice(1).concat(this.args);
}

if (this.fork) {
if (!this.stdio) {
this.spawnWith.stdio = [ 'pipe', 'pipe', 'pipe', 'ipc' ];
}
return spawn(command, args, this.spawnWith);
}

return spawn(command, args, this.spawnWith);

@vmadman
Copy link

vmadman commented Jan 9, 2014

Yup, pretty sure this is the same issue I'm having. I'm investigating workarounds now.

@wlingke
Copy link

wlingke commented Feb 22, 2014

+1

@wlingke
Copy link

wlingke commented May 20, 2014

anyone had any luck with this?

@indexzero
Copy link
Member

Duplicate of #35. It is an open issue that needs to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants