简体   繁体   中英

SLIMERJSLAUNCHER environment variable is missing. Set it with the path to Firefox or XulRunner

everyone!

When I trying to run one test in casper: casperjs --engine=slimerjs test.js

and got this msg

SLIMERJSLAUNCHER environment variable is missing. Set it with the path to Firefox or XulRunner

XulRunner, Firefox is installed. I'm using using Mac OS.

The solution is:

  1. uninstall current slimerjs brew uninstall slimerjs
  2. create a dir for git clone mkdir ~/forked && cd $_
  3. clone slimerjs repo git clone https://github.com/laurentj/slimerjs.git
  4. export to path export PATH=$PATH:~/forked/slimerjs/src

and next reboot terminal , because for me it doesn't worked until I did a reboot.

Check this our by typing slimerjs -v

Happiness to everyone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM