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.

Cannot install Error: sodium@2.0.3

See original GitHub issue

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

apk add libtool
apk add autoconf
apk add automake
apk add libsodium
apk add g++
npm rebuild
verbose stack Error: sodium@2.0.3 install: `node install.js --install`
verbose stack Exit status 1
verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
verbose stack     at EventEmitter.emit (events.js:182:13)
verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
verbose stack     at ChildProcess.emit (events.js:182:13)
verbose stack     at maybeClose (internal/child_process.js:962:16)
verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
verbose pkgid sodium@2.0.3
verbose cwd /homebridge
verbose Linux 4.18.17-unRAID
verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge-apple-tv" "--unsafe-perm"
verbose node v10.13.0
verbose npm  v6.4.1
error code ELIFECYCLE
error errno 1
error sodium@2.0.3 install: `node install.js --install`
error Exit status 1
error Failed at the sodium@2.0.3 install script.
error This is probably not a problem with npm. There is likely additional logging output above.
6656 verbose exit [ 1, true ]

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:44

github_iconTop GitHub Comments

4reactions
pponcecommented, Dec 20, 2018

My change in pponce/homebridge-apple-tv was to make homebridge-apple-tv depend on a fork of node-appletv (https://github.com/socalrds/node-appletv). That forked version of node-appletv updates its dependency to sodium 3.0.1 which in theory solves the build issue with sodium version 2.0.3. I’m running on an rpi 3 with LTS 10.14.2 version of node js.

After you received this error: Static libsodium was not found at /root/.npm/_cacache/tmp/git-clone-77f03c40/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source. Was it able to compile libsodium from source?

Can you try apt-get install autoconf automake g++ libtool prior to installing pponce/homebridge-apple-tv

2reactions
pponcecommented, Dec 23, 2018

@dornadeluxe Can you find where the homebridge-appletv plugin was installed? In my case it’s installed in: /home/pi/.nvm/versions/node/v10.14.2/lib/node_modules/homebridge-apple-tv

If you navigate to where it was installed and then run: cd node_modules/node-appletv/bin

You should then be able to run the pair command by executing this command ./appletv pair

You should see two apple tv’s appear. Select the second one in the list to pair with. Follow instructions and copy the full key that is returned as you will need it to update your config.js for the homebridge-appletv plugin. Also add “showPairSwitches”: false in the config.json for this plugin.

You should then be paired already and the plugin should auto find your Apple TV still. That solved my issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install seurat-wrapers · Issue #32 - GitHub
I am trying to install seurat-wrappers and running into an error, could you please help? ... ellipsis 0.3.0 2019-09-20 [1] CRAN (R 3.6.0)...
Read more >
gem install mimemagic -v '0.3.10' fails to install on Big Sur
this is in a non-Rails application that uses bundler. in my app mimemagic is resolving (new) to 0.3.5, but won't install on Mac...
Read more >
Error installing vctrs - General - RStudio Community
Since the current version of vctrs is 0.3.4, I installed 0.3.3 by doing the following and it worked fine. remotes::install_version("vctrs", ...
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Unable to re-install. Installer claims "Your version 2.0.0.3 is up ...
Existing version is up to date. and a Close button. So now I don't have Docker and can't seem to install it. Registry...
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