Error installing bcrypt with npm

后端 未结 17 2270
别那么骄傲
别那么骄傲 2020-11-27 14:20

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

17条回答
  •  眼角桃花
    2020-11-27 14:53

    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.

提交回复
热议问题