'Failed at chromedriver installation

I'm going to install slamdata on debian Jessie, as described here, but I failed at npm install section and it wanted to install chromedriver. I even tried a mirror of chromedriver. Here is logs.

exec@mob-db1:/opt/slamdata$ npm install

npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm

[email protected] install /opt/slamdata/node_modules/chromedriver node install.js

Downloading http://chromedriver.storage.googleapis.com/2.23/chromedriver_linux64.zip Saving to /tmp/chromedriver/chromedriver_linux64.zip Receiving... ChromeDriver installation failed undefined

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:

npm WARN notsup Not compatible with your operating system or architecture: [email protected]

npm ERR! Linux 4.2.8-1-pve

npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"

npm ERR! node v6.4.0

npm ERR! npm v3.10.6

npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] 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 chromedriver 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 chromedriver

npm ERR! Or if that isn't available, you can get their info via:

npm ERR! npm owner ls chromedriver

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! /opt/slamdata/npm-debug.log

exec@mob-db1:/opt/slamdata$ npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver

npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm

[email protected] install /opt/slamdata/node_modules/chromedriver node install.js

Downloading http://npm.taobao.org/mirrors/chromedriver/2.23/chromedriver_linux64.zip Saving to /tmp/chromedriver/chromedriver_linux64.zip Receiving... ChromeDriver installation failed undefined npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected]

npm ERR! Linux 4.2.8-1-pve

npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "chromedriver" "--chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver"

npm ERR! node v6.4.0

npm ERR! npm v3.10.6

npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] 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 chromedriver 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 chromedriver

npm ERR! Or if that isn't available, you can get their info via:

npm ERR! npm owner ls chromedriver

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! /opt/slamdata/npm-debug.log



Solution 1:[1]

I met it with 'yarn install' which info 'chromedriver: ChromeDriver installation failed Error with http'.So i try to install chromedriver before 'yarn install'. And then solve it.

https://www.npmjs.com/package/chromedriver

Solution 2:[2]

If you are not able to install chrome driver through npm, use the binary files of chrome driver. Make sure you download the same version binary file as that of your chrome browser.

Go to: https://chromedriver.chromium.org/

This will give you an exe file. Put this file in user/AppData/Roaming/npm directory. set this to PATH environment variables.

Thats it! You are done :)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cc Aier
Solution 2 Srishti Sinha