withEnv supports passing withEnv supports passing multiple additional environment variables. Try including the path to the casper library as well: withEnv(['PATH+PHANTOMJS=phantomcss/node_modules/phantomjs/bin/', 'PATH+CASPERJS=paths/to/casperjs/bin/']) { Also, double check the paths you passing to withEnv(). You are specifying a relative path in your example above. If you still encounter problems, try specifying the full absolute path to the /bin folder to ensure you have the correct location. Reply
supports passing multiple additional environment variables. Try including the path to the casper library as well:
Also, double check the paths you passing to
withEnv()
. You are specifying a relative path in your example above. If you still encounter problems, try specifying the full absolute path to the /bin folder to ensure you have the correct location.