不好 PhantomJS 意外退出 [英] not ok PhantomJS exited unexpectedly
本文介绍了不好 PhantomJS 意外退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ 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
怎么了?
testem
命令工作正常,所有测试通过 Chrome
testem
command works fine and all the tests pass in Chrome
推荐答案
这是一个糟糕的 phantomJS 安装.
It was a bad phantomJS installation.
$ sudo apt-get remove phantomjs
$ npm uninstall phantomjs -g
$ npm install phantomjs -g
这篇关于不好 PhantomJS 意外退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文