Unable to deploy a node.js project on Azure, Bcrypt is the culprit

azure, bcrypt, node.js

Solution

After some investigation, I come across another bcrypt module, this one is a native JS module and it works flawlessly on Azure : https://github.com/shaneGirish/bcrypt-nodejs

Problem

I am currently working on a node.js project which is deployed on Azure. I just added password encryption using bcrypt. Everything is fine on my test computer but when I deploy on Azure, the deployment failed and I've got this message : ``` node-gyp rebuild C:\DWASFiles\Sites\invata\VirtualDirectory0\site\wwwroot\node_modules\bcrypt>node "D:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node- gyp\bin\node-gyp.js" rebuild gypnpm ERR! bcrypt@0.7.6 install: `node-gyp rebuild` npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1 An error has occurred during web site deployment. npm ERR! npm ERR! Failed at the bcrypt@0.7.6 install script. ``` BCrypt installation is a bit tricky as it required to download and install openSSL. So is there a possibility to deploy such module on azure or is it hopeless ? Thanks, Stéphane

Original source