【发布时间】:2012-11-24 01:43:40
【问题描述】:
我是node.js、phantom.js、casper.js 和spooky.js 的新手。我已经安装了所有东西(在 Windows 中),更新了 PATH 并遵循了这个例子:
https://github.com/WaterfallEngineering/SpookyJS
我收到了这个错误:
C:\node_modules\spooky>node examples/hello.js
events.js:68
throw arguments[1]; // Unhandled 'error' event
^
Error: Child terminated with non-zero exit code 127
at Spooky._spawnChild.Spooky._instances.(anonymous function) (C:\node_module
s\spooky\lib\spooky.js:82:17)
at ChildProcess.EventEmitter.emit (events.js:96:17)
at Process._handle.onexit (child_process.js:678:10)
任何人都知道为什么以及如何解决它?我运行casperjs googlelinks.js 就好了。但是node.js和spooky.js给我带来了麻烦。
【问题讨论】:
-
是的,我看到了 github 线程,但看起来也没有解决方案。
-
该错误现已修复。您可以在传递给 Spooky 构造函数的配置对象中指定要运行的命令。
标签: node.js webkit phantomjs casperjs spookyjs