我在OpenShift有一个免费帐户,可以通过
成功安装phantomjs
npm install phantomjs
这将安装1.9.8版,但由于所需的WebKit版本仅为2.0,我希望phantomjs2
我试过
npm install phantomjs@2.0.0
npm install phantomjs2
npm install phantomjs2-ext
npm install phantomjs2.0
找到了here,但我总是以Install exited unexpectedly
结尾,例如:
npm ERR! phantomjs2.0@1.0.2 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs2.0@1.0.2 install script.
npm ERR! This is most likely a problem with the phantomjs2.0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs2.0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-504.34.1.el6.x86_64
npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "phantomjs2.0"
npm ERR! cwd /var/lib/openshift/563a42c289f5cffe020002f2/app-root/data/imgs
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0