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 usb@1.1.2 install script 'node-pre-gyp install --fallback-to-build'.

See original GitHub issue

Hi,

I keep getting this issue above when I try to npm install. I have the latest version of node and npm and am running this on a raspberry pi. See terminal output below. Any help would be great - thanks:

Failed to execute ‘/usr/local/bin/node /home/pi/arm/owi-robot-arm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/arm/owi-robot-arm/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/pi/arm/owi-robot-arm/node_modules/usb/src/binding’ (1) npm ERR! Linux 3.18.11+ npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” npm ERR! node v6.2.1 npm ERR! npm v3.9.5 npm ERR! code ELIFECYCLE

npm ERR! usb@1.1.2 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the usb@1.1.2 install script ‘node-pre-gyp install --fallback-to-build’.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ravikp7commented, Mar 1, 2017

I installed the package libudev-dev and then tried to install usb and the problem was fixed

0reactions
jrobesoncommented, Mar 19, 2019

node-pre-gyp is no longer used as of https://github.com/tessel/node-usb/pull/300 , so this can be closed too.

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 >
node-pre-gyp install --fallback-to-build · Issue #477 - GitHub
When installing sqlite3, npm fails on node-pre-gyp with error: node-pre-gyp ERR! Completion callback never invoked! node-pre-gyp ERR!
Read more >
`node-pre-gyp install --fallback-to-build` on Linux - YouTube
How to install bcrypt on Windows and Linux The steps are as follows : Install stable version of node withsudo npm cache clean...
Read more >
node-pre-gyp install | The AI Search Engine You Control
`node-pre-gyp install --fallback-to-build` failed during MeanJS installation on OSX. Asked Nov 1, 2015 • 54 votes 18 answers. QUESTION ANSWERS.
Read more >
node-pre-gyp - npm.io
A command line tool called node-pre-gyp that can install your package's C++ module from a binary. A variety of developer targeted commands for...
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