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!
Click the above solutions given in this page!
The official explanation text: https: //github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#microsoft-windows
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