Error NODE_MODULE BCRYPT

0

Would anyone know to tell me why this error ??

module.js:598
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The module '/home/fred/app/backend/node_modules/bcrypt/lib/binding/bcrypt_lib.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
the module (for instance, using 'npm rebuild' or'npm install').
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/fred/gseg_mean/backend/node_modules/bcrypt/bcrypt.js:6:16)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/fred/app/backend/api/user/authService.js:3:16)
    at Module._compile (module.js:571:32)

I also used the rebuild npm and it did not work. I deleted all the slab node_modules and installed again, it also did not work.

    
asked by anonymous 17.04.2018 / 14:41

0 answers