error while npm install
See original GitHub issuei can’t run the command nom install successfully the error message is :
make: Leaving directory ‘/home/pi/homebridge/lib/HAP-NodeJS/node_modules/ed25519/build’ npm ERR! Linux 3.18.0-20-rpi2 npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ELIFECYCLE
npm ERR! mdns@2.2.9 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdns@2.2.9 install script ‘node-gyp rebuild’.
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! Please include the following file with any support request: npm ERR! /home/pi/homebridge/lib/HAP-NodeJS/npm-debug.log
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:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.18.0-20-rpi2
gyp ERR! command “node” “/usr/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.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 3.18.0-20-rpi2
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install”
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! mdns@2.2.9 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdns@2.2.9 install script ‘node-gyp rebuild’.
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! Please include the following file with any support request: npm ERR! /home/pi/HAP-NodeJS/npm-debug.log
its on Ubuntu 12 on RPI 2
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
I’ve fixed the issue by installing a missing package: sudo apt-get install libavahi-compat-libdnssd-dev
Now I’m able to build the project, but when I start it, I’ve have the following warnings: ~/HAP-NodeJS $ node BridgedCore.js *** WARNING *** The program ‘node’ uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node *** WARNING *** The program ‘node’ called ‘DNSServiceRegister()’ which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister HAP-NodeJS starting… TCP server accepting connection on port: 51826 HAP Server is listening
@dariusz as of this spring, the mdns dependancy was removed from hap-nodejs. So on a recent install this would have no impact.