Comments (13)
Hello guyz, i resolved this problem recently by running just 2 commands:-
- sudo apt-get install libtool
- sudo apt-get install autoconf
Try and share your results. :-)
from node-sodium.
I solved this in Fedora by installing libtool, dnf install libtool. Which was not part of the automake or autoconf package.
from node-sodium.
Did you try pancakes
from node-sodium.
I had this exact same error on a debian machine while reinstalling the package.
the steps I followed:
-
I deleted the sodium directory from node_modules and executed
npm i sodium
which failed in the error above. -
So I deleted the entire node_modules directory and executed
npm i
which installed all the packages from my package.json including sodium.
I have no clue how this could have helped in anyway but it did, so maybe it does for you?
from node-sodium.
you need to install autotools so you can compile libsodium natively.
Check http://askubuntu.com/questions/430706/installing-autotools-autoconf
from node-sodium.
Still happening, can confirm.
@paixaop I installed it and I'm still getting the error.
from node-sodium.
This is happening to me too. Ubuntu LTS 16.04
from node-sodium.
This is happening to me too. Ubuntu LTS 16.04
from node-sodium.
It clearly states why at the top of the log:
Static libsodium was not found at /home/user/Desktop/nodejs/sodium-test/node_modules/.staging/sodium-5c5931be/deps/build/lib/libsodium so compiling libsodium from source.
libtool is required, but wasn't found on this system
from node-sodium.
Trying to install on Digitalocean, it happens to me too
Tested with latest Ubuntu and Debian
I installed the required things and did everything the npm page suggested
EDIT: Install also failing on Manjaro
from node-sodium.
Libtool and autoconf installed, but :
Static libsodium was not found at /usr/local/lib/node_modules/hap-client-tool/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.
libtoolize: error: Failed to create 'build-aux'
make: *** [libsodium] Error 1
Makefile:61: recipe for target 'libsodium' failed
/usr/local/lib/node_modules/hap-client-tool/node_modules/sodium/install.js:287
throw new Error(cmdLine + ' exited with code ' + code);
^
Error: make libsodium exited with code 2
at ChildProcess. (/usr/local/lib/node_modules/hap-client-tool/node_modules/sodium/install.js:287:19)
at ChildProcess.emit (events.js:159:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209: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.
from node-sodium.
Ok, I was able to install it using yarn.
from node-sodium.
@raufis27 Nice
from node-sodium.
Related Issues (20)
- Fails to compile on openSUSE LEAP 15 (../deps/build/lib/libsodium.a: No such file or directory ) HOT 8
- Cant install sodium on my Pi HOT 2
- Compiling sodium on TravisCI fails HOT 1
- Console error 'msvsversiion not defined' when invalid Visual Studio Version is found
- Invalid ELF Header HOT 1
- Error installing on Windows
- make libsodium exited with code 2, pwhash_argon2i fails HOT 3
- NPM install fails with node-gyp error: cannot use a string pattern on a bytes-like object
- package install errors HOT 3
- How to pre-build Node Sodium?
- install.js support vs2019 please HOT 1
- Installing on Windows Failed HOT 1
- Way to use exists keypair which generated in Java HOT 1
- libbtool/libsodium not installing on Petrodctyle panel
- ed25519 decode / decompress HOT 1
- Cannot install with yarn berry
- Can't install sodium, please help me (Windows) HOT 1
- Does not compile on Linux ARM. HOT 6
- Is this library still maintained?
- Can't Install (Windows) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sodium.