paixaop / node-sodium

Port of the lib sodium encryption library to Node.js
MIT License
351 stars 126 forks source link

Can't resolve library on Mac OS X #130

Closed deweller closed 5 years ago

deweller commented 6 years ago

After installing, I get this error when I try to run npm build:

Module not found: Error: Can't resolve '../build/Release/sodium' in '/path/to/app/node_modules/sodium/lib'

mpc20001 commented 6 years ago

Having the same problem.

deweller commented 6 years ago

I wasn't able to figure this out. I gave up and used something else.

mpc20001 commented 6 years ago

What did you end up using?

whaus7 commented 6 years ago

Also having this issue and I really need to use sodium..

./node_modules/sodium/lib/keys/dh-key.js Module not found: Can't resolve '../../build/Release/sodium' in '/Users/whausman/PhpstormProjects/xchange/node_modules/sodium/lib/keys'

Pleeease help :)

mpc20001 commented 6 years ago

I ended up using js-nacl - worked great.

whaus7 commented 6 years ago

yeah? Thanks dude, appreciate it. Similar to use as sodium? Trying to use some existing code for the encryption parts since I'm a bit noob in that area

whaus7 commented 6 years ago

Seems to be working without a hitch! 👍 Thanks @mpc20001 !

mpc20001 commented 6 years ago

Congrats!