Open emonterodelrio opened 7 years ago
I'm experiencing the same issue with v2.1.7:
> phantomjs-prebuilt@2.1.7 install /opt/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-macosx.zip
Saving to /var/folders/hq/ky9npjgd43z2rn96sthr6th80000gr/T/phantomjs/phantomjs-2.1.1-macosx.zip
Receiving...
Error making request.
Error: connect ETIMEDOUT 54.231.115.51:443
at Object.exports._errnoException (util.js:1008:11)
at exports._exceptionWithHostPort (util.js:1031:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
Please report this full log at https://github.com/Medium/phantomjs
when npm install for jhipster:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14 npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\bhang_000\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v4.2.1 npm ERR! npm v3.10.5 npm ERR! code ELIFECYCLE
npm ERR! phantomjs-prebuilt@2.1.12 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.12 install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\bhang_000\work000\awan000\npm-debug.log
phantomjs-prebuilt@2.1.12 install /root/node_modules/phantomjs-prebuilt
node install.js
PhantomJS not found on PATH Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 Receiving...
Error making request. Error: connect ETIMEDOUT 52.216.64.128:443 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at TCPConnectWrap.afterConnect as oncomplete
Please report this full log at https://github.com/Medium/phantomjs
It seems to be an issue in Github itself, or more specifically, in its binary storage service (which is using Amazon web services). For instance, for version 1.9.8, the binary for mac OS is https://github-cloud.s3.amazonaws.com/releases/5755891/00582eb0-f73f-11e5-8d15-038efa890eb5.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161025T073413Z&X-Amz-Expires=300&X-Amz-Signature=bc2f23db095458820589fd0b68891532f905b9a949c912973d17d75511a30159&X-Amz-SignedHeaders=host&actor_id=259623&response-content-disposition=attachment%3B%20filename%3Dphantomjs-1.9.8-macosx.zip&response-content-type=application%2Foctet-stream which is failing
I've had a similar problem using Ubuntu (16.04 LTS I think). I let my 3rd attempt run on for a while, and got this:
> phantomjs@1.9.20 install /home/tom/REDACTED/node_modules/phantomjs
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Receiving...
[=========-------------------------------] 22%
Error making request.
Error: read ECONNRESET
at exports._errnoException (util.js:1036:11)
at TLSWrap.onread (net.js:564:26)
Please report this full log at https://github.com/Medium/phantomjs
(As a random anecdote: I've always had problems downloading files from github, whether at home or at work. Very rarely works; usually takes at least 5 attempts. I'm in the UK.)
As a workaround: if you can somehow download the file in question (I used wget on a shell account from a US-based provider - downloaded instantly, no problems...), you can copy it to the location it will be downloaded to - /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
in my case, as per the npm output - and the installer will pick it up from there.
--Tom
System: Linux ... 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
@dpup @nicks
Is this going to be fixed?
My project is based on karma-phantomjs-launcher
and it fails to download 1.9.8 version using old url:
https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-windows.zip
My my codebase located on Windows Virtual Machine, and might by behind proxy.
Url works (downloads) executable on pure Windows Desktop machine.
But my Windows VM has access to https://github.com/Medium/phantomjs/archive/v1.9.8.zip and can download.
So is it the case, that karma-phantomjs-launcher should be fixed or phantomjs or simply Phantoms downloading from withing VM is well known issue since Oct-2016 or earlier?
"npm set strict-ssl false" doesn't help https://github.com/Medium/phantomjs#installation-fails-with-error-read-econnreset-or-error-connect-etimedout
node 4.4.0, npm 2.14.20
Me to, I can’t download for windows-2.1.1.zip
@lizhongyi, btw, in my case, as turned out, my corporation/network did have some settings, which disallow download directly from amazon, or it was proxy issue. Anyway, now, I can download (they allowed set of URLs/locations to be available through network). So u may also check that direction.
@alundiak Thx, I have downloaded it in CSDN.
Hi, Iḿ trying to download via nodejs this release: https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
Buy i received timeout: wget https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2 --2016-10-13 08:35:44-- https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2 Resolviendo github.com (github.com)... 192.30.253.112 Conectando con github.com (github.com)[192.30.253.112]:443... conectado. Petición HTTP enviada, esperando respuesta... 302 Found Ubicación: https://github-cloud.s3.amazonaws.com/releases/5755891/005b1742-f73f-11e5-9b11-a0f539d1d4ea.bz2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161013%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161013T063544Z&X-Amz-Expires=300&X-Amz-Signature=a21c94013e2d50a3f71a402ae1abaa80d73ca65d20871c9149b72a9fec1f6813&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dphantomjs-1.9.8-linux-x86_64.tar.bz2&response-content-type=application%2Foctet-stream [siguiente] --2016-10-13 08:35:45-- https://github-cloud.s3.amazonaws.com/releases/5755891/005b1742-f73f-11e5-9b11-a0f539d1d4ea.bz2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161013%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161013T063544Z&X-Amz-Expires=300&X-Amz-Signature=a21c94013e2d50a3f71a402ae1abaa80d73ca65d20871c9149b72a9fec1f6813&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dphantomjs-1.9.8-linux-x86_64.tar.bz2&response-content-type=application%2Foctet-stream Resolviendo github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 52.216.64.0 Conectando con github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)[52.216.64.0]:443... falló: Expiró el tiempo de conexión. Reintentando. --2016-10-13 08:13:24-- (intento: 2) https://github-cloud.s3.amazonaws.com/releases/5755891/005b1742-f73f-11e5-9b11-a0f539d1d4ea.bz2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20161013%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20161013T061115Z&X-Amz-Expires=300&X-Amz-Signature=24795b1ece65ef96d65768c5662ed0416757460ee3c2219860fed2c6a7c31d51&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dphantomjs-1.9.8-linux-x86_64.tar.bz2&response-content-type=application%2Foctet-stream