Effettivamente anche a me da errore , io lancio l'istallazione non da terminale, ma dalla web interface (homebridge-config-ui-x) e lui lancia questo comando:
Codice: Seleziona tuttosudo -E -n npm --no-update-notifier install --unsafe-perm homebridge-apple-tv@latest
Ciò che ne esce è questo:
Codice: Seleziona tutto> [email protected] 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.
libtool is required, but wasn't found on this system
Makefile:61: set di istruzioni per l'obiettivo "libsodium" non riuscito
make: *** [libsodium] Errore 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 emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `node install.js --preinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /home/homebridge/.npm/_logs/2019-09-06T07_34_22_620Z-debug.log
Command failed. Please review log for details.