Git Product home page Git Product logo

Comments (6)

iamchrismiller avatar iamchrismiller commented on August 10, 2024

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.

rbonvall avatar rbonvall commented on August 10, 2024

I upgraded from 0.3.0 to 0.3.1 and it worked. Thanks!

from grunt-casper.

timjacobi avatar timjacobi commented on August 10, 2024

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.

abeadam avatar abeadam commented on August 10, 2024

@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.

timjacobi avatar timjacobi commented on August 10, 2024

How about a pull request? :)

from grunt-casper.

ebourmalo avatar ebourmalo commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.