# Cannot find module 'bcrypt'

**URL:** <https://forum.freecodecamp.org/t/cannot-find-module-bcrypt/351308>\
**Category:** General\
**Created:** [February 18, 2020, 5:55pm UTC](https://forum.freecodecamp.org/t/cannot-find-module-bcrypt/351308 "2020-02-18T17:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WithoutPause](https://avatars.discourse-cdn.com/v4/letter/w/ccd318/32.png) [@WithoutPause](https://forum.freecodecamp.org/u/WithoutPause)\
**Post date:** [February 18, 2020, 5:55pm UTC](https://forum.freecodecamp.org/t/cannot-find-module-bcrypt/351308/1 "2020-02-18T17:55:20Z")

</div>

I looked at Stackoverflow and couldn’t find anything which worked. Here’s my current dependencies so it is installed. I do a npm run on the project and a npm start on the server, but the CMD with the server gives me the error. I’m not sure if the versions for bcrypt need to be the same.

App data:  
“dependencies”: {  
“babel-polyfill”: “^6.26.0”,  
“bcrypt”: “^3.0.8”,  
“vue”: “^2.5.11”,  
“vue-router”: “^3.1.5”  
},

Server data:  
“dependencies”: {  
“babel-cli”: “^6.24.1”,  
“babel-preset-es2015”: “^6.24.1”,  
“babel-preset-stage-0”: “^6.24.1”,  
“bcrypt”: “^1.0.2”,  
“body-parser”: “^1.17.2”,  
“cookie-parser”: “^1.4.3”,  
“cors”: “^2.8.3”,  
“express”: “^4.15.3”,  
“express-session”: “^1.15.3”,  
“nedb”: “^1.8.0”,  
“nodemon”: “^1.11.0”,  
“passport”: “^0.3.2”,  
“passport-local”: “^1.0.0”,  
“uuid”: “^3.0.1”  
}

---

<div class="post-metadata">

**Author:** ![WithoutPause](https://avatars.discourse-cdn.com/v4/letter/w/ccd318/32.png) [@WithoutPause](https://forum.freecodecamp.org/u/WithoutPause)\
**Post date:** [February 18, 2020, 6:00pm UTC](https://forum.freecodecamp.org/t/cannot-find-module-bcrypt/351308/2 "2020-02-18T18:00:25Z")

</div>

And fixed it already. Updated the version of bcrypt on the server and it worked.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 7:35pm UTC](https://forum.freecodecamp.org/t/cannot-find-module-bcrypt/351308/3 "2021-06-01T19:35:23Z")

</div>

Closed on June 1, 2021, 7:35pm UTC


