Ask coding questions

← Back to all posts
replit : package operation failed

when I run it says
--> npm install

[email protected] preinstall /home/runner/Asmithaa/node_modules/sodium
node install.js --preinstall

Static libsodium was not found at /home/runner/Asmithaa/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
throw new Error(cmdLine + ' exited with code ' + code);

Error: make libsodium exited with code 2
at ChildProcess.<anonymous> (/home/runner/Asmithaa/node_modules/sodium/install.js:293:19)
at ChildProcess.emit (node:events:390:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
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-11-13T03_31_31_015Z-debug.log
exit status 1

Replit: Package operation failed.

even though in my package there is libsodium and sodium but when i running the same message appears. what do I have to do?