Categories
JavaScript Answers

How to find Cannot find module ‘bcrypt’ error with Node?

Spread the love

To find Cannot find module ‘bcrypt’ error with Node, we install a few packages.

To fix this, we run

npm install node-gyp -g
npm install bcrypt -g

npm install bcrypt --save

to install node-gyp and bcrypt globally.

Then we run

npm install bcrypt --save

to install bcrypt locally.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *