Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 435 forks source link

Failed at the phantomjs-prebuilt@2.1.13 install script 'node install.js'. #628

Open tss0823 opened 7 years ago

tss0823 commented 7 years ago

when execute "npm install" command out print this error

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x6 4"})
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "E:\Program Files\nodejs\node.exe" "C:\Users\shan\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.6.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! phantomjs-prebuilt@2.1.13 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.13 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! D:\workspace\my-project\npm-debug.log

luzanovdm commented 7 years ago

+1 `npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/browser-sync/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN angular_template@1.0.0 No description npm WARN angular_template@1.0.0 No repository field. npm ERR! Linux 4.4.0-45-generic npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.10.9 npm ERR! code ELIFECYCLE

npm ERR! phantomjs-prebuilt@2.1.13 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.13 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! /media/data/www/4xxi/npm-debug.log `

It's not work for me :c

sqlsolver commented 7 years ago

Same issue - identical to @tss0823 description.

ryanjhodge commented 7 years ago

I'm having the same issue.

See the log under npm install on CircleCI

https://circleci.com/gh/nationalparkservice/npmap.js/379

lmackenzie commented 7 years ago

Had the same issue. The root of the problem seems to lie here. I get a 404 when I load the URL in a browser and using an alternate CDN worked for me. Check out the readme for instructions: Deciding Where To Get PhantomJS.

brunobraga95 commented 7 years ago

someone found a solution for this?

cesarve77 commented 7 years ago

+1

krbaio3 commented 7 years ago

+1

$ npm install phantomjs-prebuilt npm WARN package.json cambiotitularfondosinversion@1.0.2 license should be a val

id SPDX license expression

phantomjs-prebuilt@2.1.13 install c:\Users\a181226\Documents\Yeoman-bk\node_mo dules\phantomjs-prebuilt node install.js

PhantomJS not found on PATH Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantom js-2.1.1-windows.zip Saving to C:\Users\a181226\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows. zip Receiving...

Error making request. Error: tunneling socket could not be established, cause=Parse Error at ClientRequest.onError (c:\Users\a181226\Documents\Yeoman-bk\node_modules\ phantomjs-prebuilt\node_modules\request\node_modules\tunnel-agent\index.js:176:1 7) at ClientRequest.g (events.js:199:16) at ClientRequest.emit (events.js:107:17) at Socket.socketOnData (_http_client.js:322:9) at Socket.emit (events.js:107:17) at readableAddChunk (_stream_readable.js:163:16) at Socket.Readable.push (_stream_readable.js:126:10) at TCP.onread (net.js:538:20)

Please report this full log at https://github.com/Medium/phantomjs npm ERR! Windows_NT 6.1.7601 npm ERR! argv "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "phantomjs-prebuilt" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ELIFECYCLE

npm ERR! phantomjs-prebuilt@2.1.13 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.13 install script 'node install.js '. npm ERR! 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 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\a181226\Documents\Yeoman-bk\npm-debug.log

If I download by browser, its Ok, but when I try to install by NPM, it fail

krishvoor commented 7 years ago

+1 npm install fails on ppc64le arch

gidjin commented 7 years ago

We had this issue inside our docker containers running centos7. We were using the dist tgz files of the binaries of node 4.5.0 and npm 3.10.9. We ended up downloading the node source for 4.5.0 and compiling the binaries ourselves to workaround this issue.

HTH

eniniz commented 7 years ago

+1

magikMaker commented 7 years ago

Same problem here, trying to install via Jenkins. I tried both npm and yarn and both have similar issues:

ERR! Linux 4.7.3-coreos-r2 ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--production" ERR! node v7.2.0 npm ERR! npm v3.10.9ERR! code ELIFECYCLEERR! phantomjs-prebuilt@2.1.13 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the phantomjs-prebuilt@2.1.13 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. 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! /usr/app/npm-debug.log The command '/bin/sh -c npm i --production' returned a non-zero code: 1 info: command complete: build, code: 1} error Command failed with exit code 1.

ChristianRamseier commented 7 years ago

+1

alanwzou commented 7 years ago

+1

z2014 commented 7 years ago

Did anyone solve it?

brokenarrows commented 7 years ago

This did the trick for me:

Ubuntu 16.04 curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejs

ghost commented 6 years ago

On ArchLinux I had to do the following to install pageres-cli (which uses PhantomJS internally)

  1. Install a LTS version of NodeJS and NPM (sudo pacman -S nodejs-lts-carbon npm)
  2. Install the package using the following command: sudo npm install pageres-cli -g --unsafe-perm=true

With this you are installing the package globally and available to all system users. Maybe that flag would work too without using sudo.

No need to change permissions on the system or other weird things.

If needed, also add the /usr/bin to your $PATH.