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.