This error occurs if bcrypt library is not installed and it's missing from the node_modules library, but still, you are using bcrypt while registration to hash the plain password.
You can solve it by installing bcrypt and fetching its library to your backend file.
Install bcrypt to your project by running the following command in your project terminal:
Now import the bcrypt module in the backend node js file using:
Hope it resolved the error!