【发布时间】:2015-08-04 17:14:58
【问题描述】:
我已经在我的 Mac 机器(OS X Yosemite 10.10.3)上安装了Prerenderer IO。在安装结束后,我运行sudo npm install 并运行sudo node server.js 得到以下错误:
phantom stdout: XMLHttpRequest cannot load http://::1:12302/dnode/info. Cross origin requests are only supported for HTTP.
phantom stdout: XMLHttpRequest cannot load http://::1:12301/dnode/info. Cross origin requests are only supported for HTTP.
phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.
.../node_modules/phantom/shim.js:1815
.../node_modules/phantom/shim.js:1842
phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.
.../node_modules/phantom/shim.js:1815
.../node_modules/phantom/shim.js:1842
2015-08-04T13:45:47.307Z getting https://google.com
phantom stdout: XMLHttpRequest cannot load http://::1:12303/dnode/info. Cross origin requests are only supported for HTTP.
NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.
.../node_modules/phantom/shim.js:1815
.../node_modules/phantom/shim.js:1842
phantom stdout: XMLHttpRequest cannot load http://::1:12304/dnode/info. Cross origin requests are only supported for HTTP.
phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.
.../node_modules/phantom/shim.js:1815
.../node_modules/phantom/shim.js:1842
我尝试输入一个网址http://localhost:3000/https://google.com,但几分钟后就挂断了。
我已更改权限并尝试全局安装。两者都不起作用
【问题讨论】:
标签: javascript node.js seo phantomjs