I\'m unable to install bcrypt using npm on my machine because I encounter the following errors. I have been troubleshooting the issue without much luck. Can you
I was facing the same issue on the server side( aws ubuntu 16.04).
I tried deleting node_module/bcrypt by sudo rm -rf node_module/bcrypt multiple times and reinstalled it again and again by various ways but still facing the same issue.
I checked node version with nvm and it was also showing stable (v10.11.0).
Finally, I tried.
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
and it worked for me.