3

Here I'm using node for making a discord bot, but there is a problem in the packages I think Also, sodium is not found in the node_modules directory (folder) tried many ways but nothing work :(

Repl.it: Updating package configuration
--> npm install
> [email protected] preinstall /home/runner/test/node_modules/sodium
> node install.js --preinstall
Static libsodium was not found at /home/runner/test/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/runner/bgrb/node_modules/sodium/install.js:293
 throw new Error(cmdLine + ' exited with code ' + code);
 ^
Error: make libsodium exited with code 2
 at ChildProcess.<anonymous> (/home/runner/test/node_modules/sodium/install.js:293:19)
 at ChildProcess.emit (events.js:314:20)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm WARN [email protected] requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-03-07T10_42_18_435Z-debug.log
exit status 1
asked Mar 7, 2021 at 10:51

1 Answer 1

2

I'm going to assume you're using some form of linux distro. (correct me if im wrong.)


by the looks of it you're missing libtool

try running apt-get install libtool in your terminal. (or install with whatever package manager you're using!)


if you're not using linux, or you are still having trouble please feel free to respond to this post.

answered Mar 7, 2021 at 11:21
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.