问题:
我的的phantomjs的版本是2.0,是否是这个问题,但如果是这个问题的话,怎么解决,我看到其他有些人,下载了1.××版本的,phantomjs,好像也出现这个问题,大神们这个怎么解决。
另外一种去掉检查版本的方法,却出现了一下问题。
Casperjs\bin\bootstrap.js:91 in__die
CasperJS needs PhantomJS v1.×
解决方法:
参考链接:
http://hello.k7mm.com/browse.php?u=DotOUYSvcrMWy4QdibVKiXp5xRCjh1gw9ctgo4TN8kTKxF%2B2mcECmw%3D%3D&b=13
在bin目录下找到
Bootstrap.js脚本,打开
在以下添加该代码:
insert these 4 lines into the bin/bootstrap.js file
var system = require(‘system’);
var argsdeprecated = system.args;
argsdeprecated.shift();
phantom.args = argsdeprecated;
及此处注销以下检查版本的代码
done: