I try to convert the form input password value using bcrypt. First I installed bcrypt (npm install bcrypt --save) after I added like this
var bcrypt = require('bcrypt');
var hash = bcrypt.hashSync(values.newPassword, 10);
Then in the cmd display so mush errors like this
ERROR in ./node_modules/forever-agent/index.js Module not found: Error: Can't resolve 'tls' in
What's the cause of the error, and how can the problem be resolved?