码迷,mamicode.com
首页 > Windows程序 > 详细

windows setup casperjs slimerjs phantomjs BESTWAY

时间:2015-05-26 10:42:17      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:

 
 

 

EDIT : Here the best solution : install it via npm : npm install -g slimerjs -g to be available everywhere. And that‘s it, juste choose your --engine=slimerjs with casper and it works. Thx for this node module.

For the best way to install phantomjs + casperjs + slimerjs without PATH and OS compatibility headlock :

npm install -g phantomjs npm install -g casperjs npm install -g slimerjs

In windows the exe will be set here : C:\Users\UserName\AppData\Roaming\npm (you don‘t need to put them in PATH, node -npm actually- manages it with the -g flag).

Keep in mind slimerjs has some relative path problems, so to keep the compatibility between phantom and slimer, use fs.workingDirectory, see Is there a way to step in to CasperJS code and Debug step by step

windows setup casperjs slimerjs phantomjs BESTWAY

标签:

原文地址:http://www.cnblogs.com/jenking/p/4529899.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!