永远监控投掷ENOENT而不工作

时间:2013-09-24 17:39:57

标签: node.js express forever

所以我有:

var forever = require('forever-monitor');
var Monitor = forever.Monitor;

var child = new Monitor('clusters.js', {
  max: 10,
  silent: false,
  killTree: true,
  logFile: './logs/forever.log',
  outFile: './logs/app.log',
  errFile: './logs/error.log'
});

child.on('exit', function (err) {
  console.log('Server exitted');
});

child.start();

并且它总是抛出相同的错误:events.js:72 throw er; //未处理的'错误'事件:

Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
npm ERR! weird error 8
npm ERR! not ok code 0

有谁知道发生了什么以及如何解决? 我在Windows 7上使用:

"express": "3.3.5",
"forever-monitor": "~1.2.2"

1 个答案:

答案 0 :(得分:2)

https://github.com/blai/grunt-express/issues/12

显然问题是永远的监视器1.2,我降级到1.1,它只是工作。 从我到那里他们似乎也没有做任何事情......