question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
poudenescommented, Feb 17, 2019

😦 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
1reaction
Patriciooocommented, Feb 12, 2019

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 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >
Can't Install Anything on Windows 10: 7 Easy Expert fixes
How do I fix Windows 10 if it can't install anything? · 1. Terminate the Windows Installer process · 2. Disable Fast Startup...
Read more >
I can't install programs in Windows 10 - Microsoft Community
Try installing the app again. If that does not work: Open Start Type: cmd. Right click CMD Click Run as administrator. At the...
Read more >
Top 6 Ways to Fix Unable to Install Programs or Software on ...
Top 6 Ways to Fix Unable to Install Programs or Software on Windows 11 · 1. Check Program Compatibility · 2. Run Installer...
Read more >
Can't Install Programs on Windows 10? Get It Fixed Now
How to Fix If You Can't Install Programs Windows 10 · Fix 1. Restart Your Computer · Fix 2. Run Certain Windows 10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found