Installation module bcrypt reported Tried to download (404) error

1, the error content

node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v48-linux-x64.tar.gz

2, error description

Check the official website of the document, missing dependencies bcrypt installed,

Error 404 npm installed on bcrypt isolated on the official website!

npm official website to check out the description of the problem

Click the above solutions given in this page!

The official explanation text: https: //github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#microsoft-windows
Solutions on github
I run the command given by the official directly, or will complain

npm install --global --production windows-build-tools

3, the solution

Administrator cmd to open

Step 1: Enter the command to install the Python compiler node;

npm install -g node-gyp

Step two: Add the build environment under windows

npm install --global --production windows-build-tools

The third step: after you install bcrypt

npm install bcrypt

Published 20 original articles · won praise 11 · views 1763

Guess you like

Origin blog.csdn.net/qq_16221009/article/details/101860885