node.bcrypt.js icon indicating copy to clipboard operation
node.bcrypt.js copied to clipboard

Module Version Mismatch error on CentOS

Open umermansoor opened this issue 13 years ago • 5 comments

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)

umermansoor avatar Jul 09 '13 13:07 umermansoor

Try npm update and if that doesn't work, go into the bcrypt module directory and rebuild the module itself. Then try once more.

ncb000gt avatar Jul 09 '13 13:07 ncb000gt

FYI, the bcrypt version in my package.json is defined as follows: "bcrypt": "~0.7.6"

  1. Did npm update same thing happened.
  2. Rebuild the module and the problem went away. Thank you.

umermansoor avatar Jul 09 '13 14:07 umermansoor

BTW, for future references, I was running CentOS release 6.3 (Final).

umermansoor avatar Jul 09 '13 14:07 umermansoor

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 .

ncb000gt avatar Jul 09 '13 17:07 ncb000gt

Holy crap, was having major issues with this. The Rebuild worked. Thanks.

gwing33 avatar Aug 31 '13 20:08 gwing33