# Cannot install dependencies for vidfly-api-node

**URL:** <https://forum.codewithmosh.com/t/cannot-install-dependencies-for-vidfly-api-node/394>\
**Category:** React\
**Created:** [October 31, 2020, 3:24am UTC](https://forum.codewithmosh.com/t/cannot-install-dependencies-for-vidfly-api-node/394 "2020-10-31T03:24:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rollingtatoo22](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rollingtatoo22](https://forum.codewithmosh.com/u/rollingtatoo22)\
**Post date:** [November 27, 2020, 2:29am UTC](https://forum.codewithmosh.com/t/cannot-install-dependencies-for-vidfly-api-node/394/5 "2020-11-27T02:29:27Z")

</div>

Additionally, i just encountered a server issue where i couldn’t post new users. The solution i found was to replace the calls to _**bcrypt.genSalt(10)**_ by _**bycrypt.genSaltSync(10)**_, and _**bcrypt.hash(user.password, salt)**_ by _**bcrypt.hashSync(user.password, salt)**_.

The original methods have been updated and now need to be provided a callback function in parameters, but those works just as the old ones.

Edit: Also compare with compareSync

---

_[View the full topic](https://forum.codewithmosh.com/t/cannot-install-dependencies-for-vidfly-api-node/394)._
