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.

Raspberry Pi npm install failure

See original GitHub issue

This seems similar to Issue 195, but is on a different OS.

I am running Raspbian GNU/Linux 8 (jessie), which is a flavor of Debian for Raspberry Pi.

When running “npm install mdns” I recieve the below build error: gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

See the attached log for more details: 2017-08-14T18_17_05_277Z-debug.txt

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
lashowercommented, Aug 14, 2017

Found the issue. Based on Stack Overflow’s error: dns_sd.h: No such file or directory I needed to install the below packages.

sudo apt-get install libavahi-compat-libdnssd-dev

0reactions
rekirecommented, May 16, 2018

Where do I find that dns_sd.h on Windows?

Read more comments on GitHub >

github_iconTop Results From Across the Web

raspbian - Problems with installing Node.js NPM package
One method of getting around this problem is to install a precompiled binary. To do this start by making sure that your Pi...
Read more >
npm install failed on Raspberry Pi · Issue #1629 - GitHub
Launch a terminal on Raspberry Pi. clone Node-RED repository from GitHub. run npm install What happens? Installing chromedriver failed.
Read more >
Solving a failed npm install on the Raspberry Pi
TL;DR If you are struggling with npm install failing on a package you are convinced is no longer a dependency of your current...
Read more >
NPM not working correctly on Raspberry Pi - node.js
I have tried reinstalling NodeJS from nodesources twice, and both times NPM is installed into the directories but running any NPM just returns....
Read more >
nodejs and npm error message - Raspberry Pi Forums
I'm doing Ibeacon positioning work using Nodejs, NPM. ... I am currently installing vim. now I'm getting this error in another code. and...
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