gruntjs / grunt-lib-phantomjs

Grunt and PhantomJS, sitting in a tree.
http://gruntjs.com/
MIT License
93 stars 63 forks source link

Use globally installed phantomjs #79

Closed donny-dont closed 8 years ago

donny-dont commented 9 years ago

We're using a CI service that is built on top of Docker images. To get the build time down, and in case the tar containing phantomjs is down, I was installing phantomjs in the container globally using npm install -g phantomjs@1.9.16. Whenever there's an npm install on the project it still goes and downloads phantomjs.

Looks like an `npm install -g`; unable to check for already installed version.
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2

Is there any way around this behavior? I'm currently using grunt-contrib-qunit which depends on this library.

Thanks!

Ky6uk commented 9 years ago

Agree. I tried solution, but this is does not helped me. Local phantomjs available, global phantomjs too, binary defined in PATH, but receiving does again and again.

Ky6uk commented 9 years ago

@donny-dont also you can try my temporary solution — install phantomjs from local directory. (But tar still required I think. Dunno.)

{
  "devDependencies": {
    "phantomjs": "./assets/phantomjs"
  }
}
mendirattanishant commented 8 years ago

Anybody resolved this issue? I am facing same issue installing phamtomjs on circleci.

mendirattanishant commented 8 years ago

@donny-dont Please let me know if you found any solution to this problem.

Arkni commented 8 years ago

This is an issue with https://github.com/Medium/phantomjs as it is the package that install PhantomJS binaries. So please report the issue on their issue tracker.

Closing this for now, feel free to ask if you have followup questions.