Windows Install of PhantomJS fails Windows Install of PhantomJS fails windows windows

Windows Install of PhantomJS fails


Although I could not figure out why it was happening, I was able to work around that ECONNREFUSED error from "npm install" during the phantomjs zip file step by just manually downloading the zip file separately, placing it in the tmp directory where the download was attempting to write to.


I ran in to a simmular issue while installing grunt-html-snapshot@0.6.1 (html-snapshots => same prob) where phantomjs@1.9.15 is a dependancy.

I didn't get exactly the same error though. Where you got

Error: connect ECONNREFUSED

I got

Error: EPERM, operation not permitted

My problem was a permission issue fixed doing the "BohemMedia" comment you can find on github HERE

The other approaches did not work for me.

Your problem is a refused connection. Did you try turning off your firewalls and other security programs that could block the connection?