homebridge-dacp
homebridge-dacp copied to clipboard
Error Installing on Pi 3
Not sure why I'm getting this, have installed many other plugins without issue...
pi@raspberrypi:~ $ sudo npm i homebridge-dacp
[email protected] install /home/pi/node_modules/mdns node-gyp rebuild
gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! System Linux 4.14.34-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/node_modules/mdns gyp ERR! node -v v8.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN pi No description npm WARN pi No repository field. npm WARN pi No README data npm WARN pi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-07-01T12_44_03_790Z-debug.log
I have the same issue when trying to install dacp on a raspberry pi zero.
Is there any chance to get this issue solved?
I found a fix here https://github.com/KhaosT/HAP-NodeJS/issues/77
sudo apt-get install libavahi-compat-libdnssd-dev