How to fix “module was compiled against different Node.js version” error

In this tutorial you will learn about the How to fix “module was compiled against different Node.js version” error and its application with practical example.

How to fix “module was compiled against different Node.js version” error

How to fix "module was compiled against different Node.js version" error

You need to remove the respective module folder (bcrypt) from the node_modules folder and install it again, using following commands –

Or you can simply rebuild the package and tell npm to update it’s binary too, use following single command to get it fixed –

In this tutorial we have learn about the How to fix “module was compiled against different Node.js version” error and its application with practical example. I hope you will like this tutorial.