Comments (6)
Try version 0.3.1. This should be resolved. I still had a global version sitting around, removed that and was able to reproduce. Fixed in 0.3.1 exported casperjs bin at the top level
from grunt-casper.
I upgraded from 0.3.0 to 0.3.1 and it worked. Thanks!
from grunt-casper.
If casperjs is already installed locally the installation of this package will not pull casperjs into the packages node_modules folder so you'll still get the error.
from grunt-casper.
@timjacobi I hit that same issue,
fixed by checking for installed casper in the outer node_modules if it's not inside grunt-casper
https://github.com/iamchrismiller/grunt-casper/blob/master/tasks/lib/casper.js#L63 changed to
if (!fs.existsSync(casperBin)) {
//swap to the location outside and check if it's installed locally there
localModulesPath = path.resolve(__dirname, '../../..');
casperBin = localModulesPath + casperBinaryPath;
if (!fs.existsSync(casperBin)) {
grunt.log.error("CasperJS Binary Not Found, try `npm install`");
return next(true);
}
}
from grunt-casper.
How about a pull request? :)
from grunt-casper.
I encountered the same issue with last version (0.3.8).
Here is the pull request to fix it @iamchrismiller :
#44
It just try to find the casperjs bin in the project local modules if not found locally in grunt-casper.
Thanks to @abeadam for the fix :)
from grunt-casper.
Related Issues (20)
- Running all tests even on failure HOT 1
- "Done, without errors." even if test fails (SlimerJS 0.9.2, casper 1.1.0-beta3, grunt-casper 0.4.1) example inside HOT 1
- Canβt install PhantomJS on Travis CI HOT 1
- Issue with phantom and casper HOT 2
- engine: "slimerjs" Aborted due to warnings - 0.4.1 HOT 1
- Tests run in reverse (backwards) order? HOT 3
- slimerjs - Aborted due to warnings - 0.4.2 HOT 1
- Options in test mode HOT 1
- missed test files randomly HOT 2
- ignore-ssl-errors not working
- Can not override Phantom JS executable
- Dest with parallel to false pass Array
- support --no-colors CLI flag in test mode
- Parallel Test results clobber each other
- Include of clientside scripts does not work HOT 1
- Cannot use `files` in grunt v0.4.5
- npm install fails
- Update dependencies. HOT 4
- npm install fails on Travis CI HOT 2
- npm install fails on slimmerjs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-casper.