sailsjs-angularjs-bootstrap-example icon indicating copy to clipboard operation
sailsjs-angularjs-bootstrap-example copied to clipboard

bcrypt dependencies

Open w10036w opened this issue 11 years ago • 2 comments

I've installed bcrypt v0.8.1 (in other directory) but when I install this project it still tells me bcrypt is v0.7.7 and fail to find the openssl file. I tried to copy the latest bcrypt and still failed. How can I solve this problem?

Error message: fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory [\sailsjs-angularjs-bootstrap-example\node_modules\bcrypt\build\bcrypt_lib.vcxpro j](there is no) .... npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.

w10036w avatar Feb 17 '15 16:02 w10036w

It seems to be an incompatibility in bcrypt with Node v0.12. When I switched back to v0.10.x it did not have a problem. Is this your case as well?

cgmartin avatar Feb 18 '15 01:02 cgmartin

Hi thanks! Yeah I used v0.12 previously. I switch to 0.10.32, re-install bcrypt but still fail again, same issue and err msg (but 0.10.32 recognized). I check node_modules of this project and there is no bcrypt (the bcrypt folder flashes during installing the project). my OS is win 8 x64

w10036w avatar Feb 18 '15 05:02 w10036w