You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var forever = require('forever-monitor');
var child = new (forever.Monitor)('testscript.js', { // yes i created this file
max: 3,
silent: true,
options: []
});
child.on('exit', function () {
console.log('your-filename.js has exited after 3 restarts');
});
child.on('error', function(e) {
console.log("wtf: ",e)
})
child.start();
node foreverMonitorTest.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1000:11)
at Process.ChildProcess._handle.onexit (child_process.js:791:34)
I'm on windows 8 64 bit, node v0.10.29 .
My node.js installation is at "C:\Program Files\nodejs\node.exe". Line 246 of monitor.js (return spawn(command, args, this.spawnWith);) has the command "C:\Program".
The text was updated successfully, but these errors were encountered:
Running the example:
I'm on windows 8 64 bit, node v0.10.29 .
My node.js installation is at "C:\Program Files\nodejs\node.exe". Line 246 of monitor.js (
return spawn(command, args, this.spawnWith);
) has thecommand
"C:\Program".The text was updated successfully, but these errors were encountered: