简体   繁体   中英

bcrypt not installing when tried to using npm i bcrypt

I am getting error Cannot find module 'bcrypt' in nodejs application

I have tried to install it using npm install bcrypt but still getting the issue

npm i bcrypt

在此处输入图像描述

It is trying to build bcrypt from source, but you don't have the necessary tools installed for it to do so.

Try installing the Visual C++ Build Tools first, which can be done using the following convenience npm package:

npm install -g windows-build-tools

Once that is complete, run npm install bcrypt again.

More info here: https://www.npmjs.com/package/windows-build-tools

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM