kelektiv / node.bcrypt.js

bcrypt for NodeJs
MIT License
7.48k stars 515 forks source link

Can't install bcrypt #591

Closed koaim closed 6 years ago

koaim commented 6 years ago

Hello. I am trying to install bcrypt this: npm i bcrypt --save sudo npm i bcrypt --save sudo npm i bcrypt --unsafe-perm=true --allow-root --save

Catching this error: https://pastebin.com/5HfmfrnH How to resolve this problem?

P.S. Ubuntu 17.10 node 8.11.1 npm 5.8.0

recrsn commented 6 years ago

Can you send the full log file? Pre-build binaries are broken ATM.

koaim commented 6 years ago

Console output: https://pastebin.com/6hdWfxtF Log: https://pastebin.com/mpZAzTWq

PaulRBerg commented 6 years ago

+1 Downgraded to 1.0.3 in the meantime

recrsn commented 6 years ago

Version v2.0.1 was published. Could you check if it fixes your issues?

juicycool92 commented 6 years ago

unfortunatly, its still addressing issue error logs : https://pastebin.com/5fzte3rg

recrsn commented 6 years ago

@juicycool92 You are running npm install as root. It will fail unless you set unsafe-perm to true (not recommended) https://docs.npmjs.com/misc/config#unsafe-perm

juicycool92 commented 6 years ago

@agathver Thanks for information, after i remove all dir and install again, its works nicely on bycrypt 2.0.1

recrsn commented 6 years ago

@makarychev13 You did not have the required dependencies (python2, make, g++) for a source install (see wiki). However, good news, we have prebuilt binaries working again since v2.0.1