homebridge-apple-tv: Cant install

Hello

did follow:

sudo apt-get install libtool autoconf automake sudo npm install -g homebridge-apple-tv

get errors:

root@raspberrypi:~# sudo npm install -g homebridge-apple-tv
                                                                                                                               
> sodium@2.0.3 preinstall /usr/lib/node_modules/homebridge-apple-tv/node_modules/sodium
> node install.js --preinstall

Static libsodium was not found at /usr/lib/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.
libtoolize:   error: Failed to create 'build-aux'
Makefile:61: recept voor doel 'libsodium' is mislukt
make: *** [libsodium] Fout 1
/usr/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287
            throw new Error(cmdLine + ' exited with code ' + code);
            ^

Error: make libsodium exited with code 2
    at ChildProcess.<anonymous> (/usr/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287:19)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
npm ERR! code ELIFECYCLE                                                                                                       
npm ERR! errno 1
npm ERR! sodium@2.0.3 preinstall: `node install.js --preinstall`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sodium@2.0.3 preinstall 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/2019-02-05T09_29_41_272Z-debug.log

What can this be?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21

Most upvoted comments

😦 to bad. I’ll give it up. searched the whole internet and tried every possible solution. But the error:

    at ChildProcess.<anonymous> (/usr/lib/node_modules/homebridge-apple-tv/node_modules/sodium/install.js:287:19)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
npm ERR! code ELIFECYCLE                                                                                                                                                                                                         
npm ERR! errno 1
npm ERR! sodium@2.0.3 install: `node install.js --install'
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sodium@2.0.3 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/2019-02-06T05_40_08_096Z-debug.log```

Pop-up all the time. So no Apple TV Support in Alexa for me then...
Im not that geek to solve this as well

MacOS. After a lots of try’s ( homebridge are install already :

$ brew install libsodium

$ brew install autoconf

$ brew install libtool

$ brew install automake

( with sudo don’t work ) $ npm install -g pponce/homebridge-apple-tv --unsafe-perm

and $ homebridge ( to pair after edit .json )