不行PhantomJS意外退出

时间:2014-07-27 20:46:07

标签: continuous-integration gruntjs phantomjs karma-runner testem

$ 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

中传递

1 个答案:

答案 0 :(得分:9)

这是一个糟糕的幻影安装。

$ sudo apt-get remove phantomjs
$ npm uninstall phantomjs -g
$ npm install phantomjs -g
相关问题