Go Back

Node js Error in Express lib/node_modules/bcrypt/bcrypt.js

11/24/2023
All Articles

#Node js Error in Express lib/node_modules/bcrypt/bcrypt.js

Node js Error in Express lib/node_modules/bcrypt/bcrypt.js

Node js Error in Express lib/node_modules/bcrypt/bcrypt.js

Input :I am trying to install npm page in my pc

  $  npm install --save bcrypt

Error: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home3/scqddoac/nodevenv/mynode/evennode/14/lib/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/home3/scqddoac/nodevenv/mynode/evennode/14/lib/node_modules/bcrypt/bcrypt.js:6:16)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12) {
  code: 'ERR_DLOPEN_FAILED'
}

 

Solution :

Here you need to run below command

-->npm rebuild bcrypt --build-from-source


You can use this way and entering that command in terminal so, there be an update that fixes this issue.

Article