不是确定PhantomJS意外退出 [英] not ok PhantomJS exited unexpectedly

查看:761
本文介绍了不是确定PhantomJS意外退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ testem ci

  not ok 1 PhantomJS  - phantomjs /home/ubuntu/.nvm/v0.10.12/lib/node_modules/testem/assets/phantom.js http:// localhost:7357/6092意外退出。 

1..1
#tests 1
#pass 0
#fail 1

$ phantomjs --version

  2014-07-28T00:24:22 [警告]无法加载库icui18n无法加载库icui18n:(libicui18n.so.48:无法打开共享对象文件:无此类文件或目录)
2014-07-28T00:24:22 [警告] phantomjs:无法连接到X服务器

错误?



testem 命令运行正常,所有测试通过 Chrome

解决方案

这是一个糟糕的phantomJS安装。

  $ sudo apt-get remove phantomjs 
$ npm卸载phantomjs -g
$ npm install phantomjs -g
pre>

$ testem ci

not ok 1 PhantomJS - Browser "phantomjs /home/ubuntu/.nvm/v0.10.12/lib/node_modules/testem/assets/phantom.js http://localhost:7357/6092" exited unexpectedly.

1..1
# tests 1
# pass  0
# fail  1

$ phantomjs --version

2014-07-28T00:24:22 [WARNING] Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)"
2014-07-28T00:24:22 [WARNING] phantomjs: cannot connect to X server

What's wrong?

testem command works fine and all the tests pass in Chrome

解决方案

It was a bad phantomJS installation.

$ sudo apt-get remove phantomjs
$ npm uninstall phantomjs -g
$ npm install phantomjs -g

这篇关于不是确定PhantomJS意外退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆