title: bcrypt is crashing the app while generating salt or hashed password
body: <p>As per the bcrypt npm documentation I tried to incorporate the package but unable to use bcrypt package in my app, so to test the bcrypt separately I created sample js file which is also crashing on execution without giving any error. Below is the js file which I tried to test. I tried to pass the constant value to hash function, which is also not working.</p>
  
  <pre><code>const bcrypt = require('bcrypt');
  async function run(){
  const saltValue =await bcrypt.genSalt(10);
  bcrypt.hash('12345',saltValue)
  .then(result =&gt; console.log(result))
  .catch(error =&gt; console.log(error));
  }
  run();
  </code></pre>
  
  <p>Version:
  node : 9.0.0
  npm: '5.5.1'
  "bcrypt": "^3.0.2",</p>
  
  <p>With nodemon, I am getting message: app crashed - waiting for file changes before starting...
  in normal execution it is not showing any error.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>If change the bcrypt's async methods with synchronous then it is working fine, </p>
  
  <pre><code>    const saltValue = bcrypt.genSaltSync(10);
      const hashed = bcrypt.hashSync('12345',saltValue);
  </code></pre>
  
  <p>I think someone from bcrypt team can answer.</p>
  
  <p><strong>Update</strong>: This issue raised on the community and few other developers are facing the same issue, for more information you can refer the link.</p>
  
  <p> <a href="https://github.com/kelektiv/node.bcrypt.js/issues/674" rel="nofollow noreferrer">https://github.com/kelektiv/node.bcrypt.js/issues/674</a> </p>