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
Problem installation #3
Comments
Expirencing the same issue. |
Interesting, I'm also on a Raspberry Pi 3 with Raspbian but libsodium installs without error (cloned from this git repo then
full log: https://gist.github.com/satoshinm/6f92dce5a3340e89568ef39839308b40 |
So I removed keytar and was able to install hap-client on the Pi: satoshinm@86eec63 However I now see possibly the same libsodium installation problem: $ node
> require('./')
Error: Cannot find module '../build/Release/sodium'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/pi/homebridge/homebridge-toggle-client/hap-client/node_modules/sodium/lib/sodium.js:16:15)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
> any ideas? The libsodium module (WebAssembly and pure JS) might be easier to install than sodium (native bindings). |
Finally I can Install hap-client in a raspberry pi but I have another problem, when I run the example code i get this error: module.js:538 Error: Cannot find module '../build/Release/keytar.node' Any Idea? |
just in case for other who face this problem. You need to install : |
@dragouf any idea how i would fix the same issue on windows? |
@forty2 wouldyou be pen for a PR to updste deps and fixing some "long responses" errors? |
Hello and thanks for your module I am trying to install this on a raspberry pi 3 with jessie
I am running homebridge perfectly but i can install your plugin I have this error
pi@raspberrypi:~ $ sudo npm install hap-client --save
Static libsodium was not found at /home/pi/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.
libtool is required, but wasn't found on this system
Makefile:61: recipe for target 'libsodium' failed
make: *** [libsodium] Error 1
/home/pi/node_modules/sodium/install.js:287
throw new Error(cmdLine + ' exited with code ' + code);
^
Error: make libsodium exited with code 2
at ChildProcess. (/home/pi/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 WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
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/2017-12-13T20_03_17_654Z-debug.log
What Do I have to do?
The text was updated successfully, but these errors were encountered: