-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install Error: [email protected] #43
Comments
I ran into the same problem on Ubuntu 18.0.3. The 2.0.3 dependency come from a dependency of this project which is node-apple-tv. I have not figured out a workaround. |
I have the same problem on my Banana PI M2 Berry with Raspbian Strech. So far, haven't found a solution. Error: make nodesodium exited with code null npm ERR! A complete log of this run can be found in: |
same problem here |
Maybe @lprhodes can give some advice on this one. I know the issue lies with trying to install node-apple-tv plugin to Homebridge, so maybe I can create an issue there as well. I was trying to troubleshoot this past weekend, but just kept seeing the same error with multiple "fix attempts" |
Based on the logs, I'm guessing something is going on with the directories it is looking for in node_modules
|
Is the developer still active? Or did anyone else achieve any progress? |
Does not look like he has been active for a few months :( I'll try to dig in deeper and figure out what is going on. If anyone else figures this out, please share. |
Same issue here. |
Same for me, can't install |
try pponce/homebridge-apple-tv |
Tried to install from this package, got the same problem with for bot global and local types of installation: |
Same here on a Synology NAS (node.js v10.13)... |
My change in pponce/homebridge-apple-tv After you received this error: Can you try |
Sorry, I'm new, how do i specifically install from pponce/? All the homebridge plugins I've installed so far I use |
npm install -g git+https://[email protected]/pponce/homebridge-apple-tv.git |
sorry but I only use docker command line (via sh command). |
Thanks a lot, got it installed like that. Now I ran into the next problem however. :) My apple-tv is discovered twice which is also an open issue here. Tried to add it manually but for this I need to install node-appletv which again wants to install Sodium 2.0.3... |
@dornadeluxe Can you find where the homebridge-appletv plugin was installed? If you navigate to where it was installed and then run: You should then be able to run the pair command by executing this command You should see two apple tv’s appear. Select the second one in the list to pair with. You should then be paired already and the plugin should auto find your Apple TV still. |
Another step further, thanks a lot pponce! I ran the pair process and copied the credentials and put everything in the config.js. So far so good but homebridge still is not willing to start. This is what I get now: |
I deleted the accessories folder and tried again and now it works, hallelujah! :) Thanks for your help and Merry Christmas! |
Glad you figured that last one out. I was stumped.. |
@dornadeluxe I had the same issue with "./accessories" module. That didn't help. I checked the original repo, folder "accessories". I manually created all 4 .js files on the same folder on my raspberry and copied the code from original repo. It worked for me. Now works perfectly. |
Thanks for that. I tried to install, but I get this error: root@kali:~/.pm2/logs# npm install -g git+https://[email protected]/pponce/homebridge-apple-tv.git
Static libsodium was not found at /usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. Error: make libsodium exited with code 2 npm ERR! A complete log of this run can be found in: Any idea how to fix this? Thanks. |
Sorry I've not encountered your issue. |
Yes I already did root@kali:/.pm2/logs# sudo apt-get install autoconf automake g++ libtool
Static libsodium was not found at /usr/local/lib/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. Error: make libsodium exited with code 2 npm ERR! A complete log of this run can be found in: Any ideas please? Thanks. |
I am having similar issues with sodium as well -- can anyone assist me? Currently running node: 11.6.0, raspberry 3 Installed plugin successfully using: sudo npm install -g homebridge-apple-tv --unsafe-perm When I attempt to run homebridge, I receive the following error. Also, I am attempting to run this plugin with the Nest plugin (which is active and working).
Any ideas on how to resolve this? I tried updating and following the instructions above, but no luck. Thanks! |
I was able to build with sodium 3. See |
How did you achieve installing? what commands did you use? i installed sodium 3 and still had problems installing. |
@nibty how did you do it. I read article but its for MacOs. im running on Rasbian Stretch Last build. |
For anyone who doesn't want to wait for @lprhodes to update his repo, you can install GioCirque's cloned and fixed version with the following command:
NOTE: if @lprhodes ends up updating his repo and homebridge plugin, and if @GioCirque doesn't continue to maintain his package, you won't see any upgrades and miss out on new features should there be any. |
@mkormendy @GioCirque thanks. Lets try this one then. :) Its Better then nothing! In meanwhile of writing this post. I see for very long time this line:
After a while I get this :(
|
here the |
I don't have a raspberrypi to try this on. I'd suggest using the
|
I got this repo to install last night after initially having this issue with sodium. I manually installed |
Yeah, just install libsodium before installing the plugin |
Wow, @GioCirque after almost an hour on my PI it finally worked, tks |
What worked for meSo, after a long (long) night with the infamous error "Failed at the [email protected] preinstall script" - I was finally able to get this plugin up and running (works very nice) I don't know exactly what I did that made the trick, I must be honest. But in order to (maybe) help others that come here, I decided to go back to the logs, extract (most of) my "sudo" commands, and list them here. Listed in brackets are outputs worth mentioning:
Afer installation, worth mentioning, I didn't see any switch to pair my AppleTV in the home app... I needed to do the following sequence:
Then, I received the credential, copied it, and added it as part of this block that I added to config.json:
Good luck guys! |
Okay. So I had to follow the "standard" process (install automake, libtool and sodium etc. before installing the plugin) and ALSO downgrade to NodeJS V8. Using the NodeJS 8 version (8.16.0) fixed my problem! |
@omriavital which AppleTV generation are you working with? Cause everything is working now but |
Here the same excact problem. Before it was working fine here. My first install six months ago was not easy, same problems as everyone else (sodium 2.0.3). But in the end I got it working just fine! Then I decided (now i do regret that) because of some version (node, hue) "warnings In the end I decided to start from scratch, new DebianOS, new homebridge-install, the works... But then: Same error No Apple TVs found on the network. Try again. Same network, same AppleTV, same Pi, same Hue Hub.... Somebody an idea where to search for the solution? |
Could the problem be that the plugins and homebridge are on different locations? The same problem seemed to be with the version updates. Apple TV Pair is located in this folder: ~/.nvm/versions/node/v10.16.3/lib/node_modules/homebridge-apple-tv/node_modules/node-appletv/bin $ ./appletv pair *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi. But in previous posts I see it should be located in: /usr/local/lib/node_modules $ cd homebridge-apple-tv But there seems to be no such folder. Is this a node version problem, should I degrade my node version? Hue wants this version...10.6.3 |
For people still running into this, you must use node version 8. It's the only thing that worked for me. |
Is there any other chance to get this plugin running except of downgrading node? I have a lot of other plugins installed and i dont want to run in more issues after a downgrade.. omriavitals workaround didnt worked for me. |
Keep getting this error when trying to install it on my Homebridge Docker on Synology install. `USER: root [##################] - reify:sodium: timing reifyNode:node_modules/homebridge-apple-tv/no
Static libsodium was not found at /homebridge/node_modules/homebridge-apple-tv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. Error: make libsodium exited with code 2 Node.js v18.12.1 npm ERR! A complete log of this run can be found in: Operation failed. Please review log for details.` I went ahead and installed Sodium via npm install -g libsodium which installed fine but trying to install homebridge-apple-tv keeps giving me this error. =( Thanks in advance! |
I was trying to get this plugin installed on my home bridge docker, but I am hitting some issues with installing sodium. I am using the oznu home bridge docker and this is my startup.sh
The text was updated successfully, but these errors were encountered: