- Normally you would just type
npm install bcrypt
. However, people on Linux (especially Ubuntu and Debian) might get an error because bcrypt needs to be compiled and the compiler and the relative utilities are missing. To fix this, typesudo apt-get install build-essential
. Only after that typenpm install bcrypt
. Now it should work.
Travis is also a linux machine and requires a C++ compiler for using bcrypt, if you put the highlighted text from this image in your travis.yml it will work properly! Yay!