Node – was compiled against a different Node.js version using NODE_MODULE_VERSION 51

You need to remove the module folder (bcrypt) from the node_modules folder and reinstall it, use the following commands:

$ rm -rf node_modules/bcrypt
$ npm install
// or
$ yarn

Leave a Comment