Skip to content

Instantly share code, notes, and snippets.

@pfrazee
Last active June 9, 2017 16:16
Show Gist options
  • Save pfrazee/6b3b80b668cb310a3f0cf75101f742e0 to your computer and use it in GitHub Desktop.
Save pfrazee/6b3b80b668cb310a3f0cf75101f742e0 to your computer and use it in GitHub Desktop.
require('sodium-native')
{
"dependencies": {
"sodium-native": "^1.10.1"
}
}
@pfrazee
Copy link
Author

pfrazee commented Jun 7, 2017

Steps:

git clone https://gist.github.com/6b3b80b668cb310a3f0cf75101f742e0.git
cd 6b3b80b668cb310a3f0cf75101f742e0
npm i
node index.js

You should see no output in index.js

@xpollen8
Copy link

xpollen8 commented Jun 7, 2017

correct. it installed and ran w/o complaint

@mafintosh
Copy link

@pfrazee are you using sodium-native from the node process or the render process in electron?

@mafintosh
Copy link

@xpollen8 actually could you try requiring the sodium-native module that is shipped with beaker? i wonder if that got corrupted somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment