question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed at the node-hid@0.5.1 install script 'node-pre-gyp install --fallback-to-build'.

See original GitHub issue

npm 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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yas-nyancommented, Jun 27, 2016

@todbot Thank you for the quick response.

  1. Ubuntu 16.04

  2. Maybe already installed. 3.“npm install node-hid”

    When use “node v 5.6.0”, this err does not occur.

0reactions
todbotcommented, Jan 1, 2017

Hi Sergio, What is the English translation of:

make: se entra en el directorio '/home/sergio/msi-klm/node_modules/node-hid/build'
make: *** No hay ninguna regla para construir el objetivo '../.node-gyp/7.3.0/include/node/common.gypi', necesario para 'Makefile'. Alto.
make: se sale del directorio '/home/sergio/msi-klm/node_modules/node-hid/build'

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:

apt-get install build-essential git 
apt-get install gcc-4.8 g++-4.8 && export CXX=g++-4.8

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

`node-pre-gyp install --fallback-to-build` failed during MeanJS ...
i have tried upgrading node-gyp: sudo npm install -g node-gyp. It worked for me. I find the solution here, I hope it can...
Read more >
*Solved* Fail to install node-red-contrib on Ubuntu - The ...
I run into this error trying to install the node-red TTN node. ... node-pre-gyp install --fallback-to-build --library=static_library.
Read more >
node-pre-gyp | Yarn - Package Manager
node-pre-gyp makes it easy to publish and install Node.js C++ addons from binaries. Build status. node-pre-gyp stands between npm and node-gyp and offers ......
Read more >
Need help getting SQLite working with Electron on Windows 10
I have been trying for weeks to get SQLite installed and working with ... node-pre-gyp install --fallback-to-build Building the projects in ...
Read more >
Npm install fails with sqlite3@5.0.0 in dependencies - snapcraft
Failed at the sqlite3@5.0.0 install script. npm ERR! ... stack Error: sqlite3@5.0.0 install: `node-pre-gyp install --fallback-to-build` 3770 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found