Skip to content

node server.js command failing #36

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
kapilrajyaguru opened this issue Aug 31, 2021 · 0 comments
Open

node server.js command failing #36

kapilrajyaguru opened this issue Aug 31, 2021 · 0 comments

Comments

@kapilrajyaguru
Copy link

Followed the step by step instruction but when it comes to running "node server.js" it fails with the following error message. I tried to update the node module version, rebuild the code but it didn't work.

crud-using-nodejs-and-db2\node_modules\bindings\bindings.js:121
throw e;
^

Error: The module '\?\C:\crud-using-nodejs-and-db2\node_modules\ibm_db\build\Release\odbc_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1131:18)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at bindings (C:\crud-using-nodejs-and-db2\node_modules\bindings\bindings.js:112:48)
at Object. (C:\Users\6J8247897\Documents\IBM\Lab\nodjs-db2\crud-using-nodejs-and-db2\node_modules\ibm_db\lib\odbc.js:31:31)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant