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.

problem with npm rebuild

See original GitHub issue

hey guys, im trying to build this on raspberry pi and i run into problems im hoping you guys can help with:

pi@raspberrypi ~/HAP-NodeJS $ npm rebuild

curve25519@1.0.0 install /home/pi/HAP-NodeJS/node_modules/curve25519 node-gyp rebuild

make: Entering directory ‘/home/pi/HAP-NodeJS/node_modules/curve25519/build’ CXX(target) Release/obj.target/curve/node_curve.o SOLINK_MODULE(target) Release/obj.target/curve.node SOLINK_MODULE(target) Release/obj.target/curve.node: Finished COPY Release/curve.node make: Leaving directory ‘/home/pi/HAP-NodeJS/node_modules/curve25519/build’

bignum@0.6.1 install /home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum node-gyp configure build

make: Entering directory ‘/home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum/build’ make: Nothing to be done for ‘all’. make: Leaving directory ‘/home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum/build’ curve25519@1.0.0 /home/pi/HAP-NodeJS/node_modules/curve25519 js-nacl@0.6.0 /home/pi/HAP-NodeJS/node_modules/js-nacl node-hkdf@0.0.1 /home/pi/HAP-NodeJS/node_modules/node-hkdf vows@0.5.13 /home/pi/HAP-NodeJS/node_modules/node-hkdf/node_modules/vows eyes@0.1.8 /home/pi/HAP-NodeJS/node_modules/node-hkdf/node_modules/vows/node_modules/eyes node-persist@0.0.2 /home/pi/HAP-NodeJS/node_modules/node-persist mkdirp@0.3.5 /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/mkdirp underscore@1.4.4 /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/underscore sugar@1.3.9 /home/pi/HAP-NodeJS/node_modules/node-persist/node_modules/sugar srp@0.2.0 /home/pi/HAP-NodeJS/node_modules/srp bignum@0.6.1 /home/pi/HAP-NodeJS/node_modules/srp/node_modules/bignum

pi@raspberrypi ~/HAP-NodeJS $ node Core.js

module.js:340 throw err; ^ Error: Cannot find module ‘mdns’ at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/pi/HAP-NodeJS/Advertiser.js:1:74) at Module._compile (module.js:456:26) at Object.Module._extensions…js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

pi@raspberrypi ~/HAP-NodeJS $ npm install mdns npm WARN package.json curve25519@1.0.0 No repository field. /

mdns@2.2.1 install /home/pi/HAP-NodeJS/node_modules/mdns node-gyp rebuild

make: Entering directory ‘/home/pi/HAP-NodeJS/node_modules/mdns/build’ CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o In file included from …/src/dns_sd.cpp:1:0: …/src/mdns.hpp:31:20: fatal error: dns_sd.h: No such file or directory compilation terminated. dns_sd_bindings.target.mk:128: recipe for target ‘Release/obj.target/dns_sd_bindings/src/dns_sd.o’ failed make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1 make: Leaving directory ‘/home/pi/HAP-NodeJS/node_modules/mdns/build’ gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12) gyp ERR! System Linux 3.12.28+ gyp ERR! command “node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /home/pi/HAP-NodeJS/node_modules/mdns gyp ERR! node -v v0.10.33 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok

npm ERR! mdns@2.2.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mdns@2.2.1 install script. npm ERR! This is most likely a problem with the mdns package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls mdns npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.12.28+ npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” “install” “mdns” npm ERR! cwd /home/pi/HAP-NodeJS npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! not ok code 0

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:26 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Alpha200commented, Nov 3, 2014

Did you run sudo apt-get install libavahi-compat-libdnssd-dev before npm rebuild?

0reactions
KhaosTcommented, Nov 4, 2014

@quiquoi Glad it finally works ^^ @schlickspringer Right now I don’t think there is any kind of HomeKit app available on App Store. Sadly, a developer account with iDP is required to try HomeKit app on iOS (unless jailbreak the device).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Fails: `npm rebuild node-sass --force` - Stack Overflow
Using n to switch Node versions. I've ran yarn , npm rebuild node-sass --force many many times. And still fails. Getting this error:....
Read more >
How to fix npm start error: rebuild node-sass issue
Run `npm rebuild node-sass` to download the binding for your current environment. To make node-sass available in your source code, npm needs to ......
Read more >
npm rebuild does not appear to actually rebuild #513 - GitHub
To workaround this do npm rebuild --build-from-source . 6
Read more >
npm-rebuild
This command runs the npm build command on the matched folders. This is useful when you install a new version of node, and...
Read more >
Npm rebuild node-sass fails - Laracasts
I have an old project that has a grunt as build tool. I have installed the project dependencies and grunt cli. This is...
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