-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
node wrongly searched in relative path #21
Comments
Did you mean to open the issue here? This error is unrelated to respawn |
Just hit the same issue. The source of the confusion is that when i.e. error above occurs because the author is expecting respawn to find node.exe, but respawn is actually looking for a node module called node.js in current directory, PATH, and any other directory it checks for node modules. |
Confirmed that adding fork option does change the API entirely, so you are supposed to specify node module name as target, and it's possible to pass Node path and Node args separately in options for |
Im launching my server this way:
And get the following error:
So it seems that
node
is not taken from the environment, but from the current directory.When executing that command directly on the console, it runs fine.
More details if needed:
package.json:
monitor.js:
process.env.PATH:
[...]:/home/oodelally/.nvm/versions/node/v8.4.0/bin/:[...]
Sonode
should be available.The text was updated successfully, but these errors were encountered: