# After making a deploy, I test the function and show this:

**URL:** <https://forum.serverless.com/t/after-making-a-deploy-i-test-the-function-and-show-this/8624>\
**Category:** Serverless Framework\
**Created:** [June 24, 2019, 6:18am UTC](https://forum.serverless.com/t/after-making-a-deploy-i-test-the-function-and-show-this/8624 "2019-06-24T06:18:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [June 24, 2019, 6:23am UTC](https://forum.serverless.com/t/after-making-a-deploy-i-test-the-function-and-show-this/8624/2 "2019-06-24T06:23:49Z")

</div>

Hi Dsantacruz and welcome to the community.

The issue you mention is the fact that the environment under which your Lambda functions run on AWS is not the same as the environment you might run locally. Bcrypt has to be compiled for the environment in which it is going to execute since it is written in C and this means if you have to use that specific version there are some hoops you will need to jump through. These instructions should help you with that route: [https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#rhel-and-centos](https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#rhel-and-centos)

The alternative is to use a module called bcryptjs ([https://github.com/dcodeIO/bcrypt.js](https://github.com/dcodeIO/bcrypt.js)) which does exactly the same thing but is written purely in JavaScript. The downside is that it will be a bit slower but this might be good enough for you.

---

_[View the full topic](https://forum.serverless.com/t/after-making-a-deploy-i-test-the-function-and-show-this/8624)._
