node-scrypt icon indicating copy to clipboard operation
node-scrypt copied to clipboard

Can't install scrypt

Open FilipLaurentiu opened this issue 5 years ago • 1 comments

sudo npm i -g scrypt

Fail

[email protected] preinstall /usr/lib/node_modules/scrypt node node-scrypt-preinstall.js

Error: Error: Command failed: ./configure ./configure: line 1904: config.log: Permission denied ./configure: line 1914: config.log: Permission denied

[email protected] install /usr/lib/node_modules/scrypt node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/scrypt/build' gyp ERR! System Linux 4.18.0-16-generic gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/scrypt gyp ERR! node -v v8.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install 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/filip/.npm/_logs/2019-03-16T19_36_49_422Z-debug.log

This error occur when I want to install scrypt

Node: v8.15.1 npm: 6.4.1

FilipLaurentiu avatar Mar 16 '19 19:03 FilipLaurentiu

You're running into problems with directory permissions. Try installing to your user's home directory instead of /usr/lib/. NPM isn't helping you for security reasons and I don't think sudo will help.

BrandonZacharie avatar Mar 22 '19 18:03 BrandonZacharie