Failed at the node-hid@0.5.1 install script 'node-pre-gyp install --fallback-to-build'.
See original GitHub issuenpm ERR! Linux 4.4.0-24-generic
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! node-hid@0.5.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-hid@0.5.1 install script ‘node-pre-gyp install --fallback-to-build’.
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 node-hid package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-hid
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls node-hid
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
@todbot Thank you for the quick response.
Ubuntu 16.04
Maybe already installed. 3.“npm install node-hid”
When use “node v 5.6.0”, this err does not occur.
Hi Sergio, What is the English translation of:
as I’m suspecting that’s where your error is starting.
The warning about not finding “HID-v0.5.2-node-v51-linux-x64.tar.gz” is node-pre-gyp trying to find a pre-built binary for your OS. Since it cannot find it, node-pre-gyp hands off to node-gyp to compile. (As a rule there won’t be pre-built binaries for Linuxes because they vary so much)
Also, did you install the other prerequisites mentioned on: https://github.com/node-hid/node-hid#compiling-from-source Most specifically:
Finally, one thing to try if you’re still having issues to is
npm install --verbose node-hid
, posting the output to gist.github.com and referencing it here. (verbose output is way too big for issues conversations)