grover / homebridge-dacp

Remotely control Apple TV and iTunes via HomeKit.
MIT License
151 stars 14 forks source link

Error Installing on Pi 3 #49

Open lswee opened 6 years ago

lswee commented 6 years ago

Not sure why I'm getting this, have installed many other plugins without issue...

pi@raspberrypi:~ $ sudo npm i homebridge-dacp

mdns@2.4.0 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! mdns@2.4.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mdns@2.4.0 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

BerkTam commented 6 years ago

I have the same issue when trying to install dacp on a raspberry pi zero.

Is there any chance to get this issue solved?

lswee commented 6 years ago

I found a fix here https://github.com/KhaosT/HAP-NodeJS/issues/77

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