Module Version Mismatch error on CentOS
hi Guys,
I'm getting the following bcrypt error when attempting to start server on CentOS. Please note that this everything works fine on Mac OSX (tried on two different macs).
We're using the following version of node: v0.10.12
I have also removed the node_modules folder and did npm install on the linux box but the same error.
I'd appreciate some help. Thanks.
/usr/bin/node app.js
/var/smplive_ndashboard/node_modules/bcrypt/node_modules/bindings/bindings.js:79
throw e
^
Error: Module version mismatch. Expected 11, got 1.
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at bindings (/var/smplive_ndashboard/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15)
at Object.<anonymous> (/var/smplive_ndashboard/node_modules/bcrypt/bcrypt.js:1:97)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Try npm update and if that doesn't work, go into the bcrypt module directory and rebuild the module itself. Then try once more.
FYI, the bcrypt version in my package.json is defined as follows:
"bcrypt": "~0.7.6"
- Did
npm updatesame thing happened. - Rebuild the module and the problem went away. Thank you.
BTW, for future references, I was running CentOS release 6.3 (Final).
Strange. I thought that update used to rebuild the module. Thanks for the notes. On Jul 9, 2013 10:15 AM, "Umer Mansoor" [email protected] wrote:
BTW, for future references, I was running CentOS release 6.3 (Final).
— Reply to this email directly or view it on GitHubhttps://github.com/ncb000gt/node.bcrypt.js/issues/173#issuecomment-20676637 .
Holy crap, was having major issues with this. The Rebuild worked. Thanks.