EOSIO / eosjs-ecc

Elliptic curve cryptography functions: Private Key, Public Key, Signature, AES, Encryption, Decryption
288 stars 119 forks source link

what is this problem? Cannot find module 'eosjs-ecc' ,after sudo npm install --unsafe-perm #8

Closed jhomephper closed 6 years ago

jhomephper commented 6 years ago

code: const ecc = require('eosjs-ecc')

jcalfee commented 6 years ago

Not sure what your doing or trying to do.. If you installed the package as sudo are you then running node as sudo? I never have to use sudo with npm or node ..

It says running as root (sudo) will switch this to false.. Looks like your turning it back on.

Unsafe-perm is poorly documented here at npmjs .. https://docs.npmjs.com/misc/config#unsafe-perm

One comment here added a boolean after that parameter: sudo npm install --unsafe-perm true PACKAGE_NAME ref: https://stackoverflow.com/questions/28763958/nodejs-unsafe-perm-not-working-on-package-json#28787942