banquo/phantom nodejs 错误 - 无法读取未定义的 属性 'createPage'
banquo/phantom nodejs error - Cannot read property 'createPage' of undefined
我正在尝试 运行 https://github.com/ajam/banquo-server 并收到错误
Cannot read property 'createPage' of undefined
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 返回了一个错误,但没有具体说明是什么。
有什么想法吗?
问候
我遇到了同样的问题并修复了它,将 phantomjs 二进制文件添加到 PATH.
您可以测试是否已经设置运行命令:
$ phantomjs
出现以下错误说明不是:
'phantomjs' is not recognized as an internal or external command, operable program or batch file
正如你在 中所说:
not a bug as this works on my local mac, not on external server
所以,这不是您的代码的问题。那是你的环境有问题所以我猜你也错过了设置 PATH 变量。
我正在尝试 运行 https://github.com/ajam/banquo-server 并收到错误
Cannot read property 'createPage' of undefined
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 返回了一个错误,但没有具体说明是什么。
有什么想法吗?
问候
我遇到了同样的问题并修复了它,将 phantomjs 二进制文件添加到 PATH.
您可以测试是否已经设置运行命令:
$ phantomjs
出现以下错误说明不是:
'phantomjs' is not recognized as an internal or external command, operable program or batch file
正如你在
not a bug as this works on my local mac, not on external server
所以,这不是您的代码的问题。那是你的环境有问题所以我猜你也错过了设置 PATH 变量。