banquo / phantom nodejs错误 – 无法读取未定义的属性'createPage'

即时通讯试图运行https://github.com/ajam/banquo-server和接收和错误

无法读取未定义的属性“createPage”

Express server listening on port 3000 Requesting http://america.aljazeera.com /root/banquo-server/node_modules/banquo/src/banquo.js:36 ph.createPage(openPage); ^ TypeError: Cannot read property 'createPage' of undefined at createPage (/root/banquo-server/node_modules/banquo/src/banquo.js:36:7) at /root/banquo-server/node_modules/node-phantom/node-phantom.js:65:6 at null._onTimeout (/root/banquo-server/node_modules/node-phantom/node-phantom.js:43:5) at Timer.listOnTimeout (timers.js:110:15) error: Forever detected script exited with code: 1 error: Script restart attempt #7 connect.multipart() will be removed in connect 3.0 visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives connect.limit() will be removed in connect 3.0 

我已经检查并从node-phantom.js:36返回一个错误,但是没有指定什么。

有任何想法吗?

问候

我有同样的问题,并修复它添加到PATH phantomjs二进制文件。

您可以testing它是否已经设置运行命令:

 $ phantomjs 

以下错误意味着它不是:

“phantomjs”不被识别为内部或外部命令,可操作程序或batch file

正如你在评论中所说:

不是一个错误,因为这在我的本地mac上,而不是在外部服务器上

所以,这不是你的代码的问题。 这是你的环境的一个问题,所以我猜你也错过了设置PATHvariables。