Skip to content

node server.js command failing #36

Open
@kapilrajyaguru

Description

@kapilrajyaguru

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions