Open rohithkrajan opened 7 years ago
Try an advice of @galtenhofen (see issue #644) npm set strict-ssl false
I'm seeing this issue under Jenkins 2 Pipeline project (Jenkins is running under Windows 2008R2 64bits as a service). PhantomJS is failing only when executing with --version when checking correctness of installation. In the same Pipeline phantomjs executes ember-cli tests without any problem. I'm guessing there is an issue with availability of the console to print a version when running under Windows service.
I am trying to install phantomjs on a windows 7 machine and am getting this error .
There are many issues logged in this repo for the same or this SO question but none of it is helping in my case.
This is what is the state of my machine
--phantomjs_cdnurl
switch mentioned here https://www.npmjs.com/package/phantomjs#deciding-where-to-get-phantomjsphantomjs -v 2.1.1
But when I run
npm install
on my project it is trying to install the phantomjs and will run into the above error.Another thing I observed from the npm logConsidering PhantomJS found at C:\Program Files (x86)\nodist\bin\phantomjs.CMD Found PhantomJS at C:\Program Files (x86)\nodist\bin\phantomjs.CMD ...verifying Error verifying phantomjs, continuing { [Error: Command failed: C:\Program Files (x86)\nodist\bin\phantomjs.CMD --version
it is trying to run the phantomjs.CMD --version which also failing
Following are the versions i have ` D:\PROJECTS\sbc-web\app>node -v
v5.5.0
D:\PROJECTS\sbc-web\app>npm -v
3.10.9
D:\PROJECTS\sbc-web\app>phantomjs -v
2.1.1
` I also tried to install pahntomjs by directly downloading the repo and installing,That also is getting the error
npm ERR! phantomjs-prebuilt@2.1.13 install:
node install.js