Error upon requiring ibm_db module
See original GitHub issueCurrent behavior
If I require the module “ibm_db” from either spec file or plugins/index.js I get the following error:
The stacktrace is the following:
Error: The module '\\?\C:\[...]\node_modules\ibm_db\build\Release\odbc_bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 85. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1812)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at bindings (C:\[...]\node_modules\bindings\bindings.js:112:48)
at Object.<anonymous> (C:\[...]\node_modules\ibm_db\lib\odbc.js:57:31)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
Desired behavior
I would like to import the module as a plugin/command in order to perform DB2 queries.
Test code to reproduce
It is sufficient to install the “ibm_db2” module and then requiring it with:
var ibmdb = require('ibm_db');
Versions
Cypress version 6.4.0 on Windows
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Error in installing ibm_db · Issue #520 · ibmdb/node ... - GitHub
Hello all, Currently i am working on nodejs. My O.S. & nodejs details are---> O.S.--> Windows 10, X64 Nodejs --> 11.11.0 node-gyp--> 3.3.1...
Read more >problem using ibm_db on node.js - Forums - IBM Support
I am currently developing a node.js application using the ibm_db module. When i try to push the application a compile error seems to...
Read more >Node JS Binding error when trying to use IBM_DB
I am getting the below error when trying to use IBM_DB for db2 access. Here is the code I'm using: var http =...
Read more >ibm-db 3.1.1 - PyPI
For installing ibm_db on Docker Linux container, you may need to install ... in <module> Exception: [IBM][CLI Driver] SQL1042C An unexpected system error...
Read more >node-ibm_db - npm
Default compiler on RHEL 6 does not have the required support. ... If npm install ibm_db aborts with "Out Of Memory" error on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tell Cypress to use the system Node https://on.cypress.io/configuration#Node-version
Look at the slides https://slides.com/bahmutov/cypress-beyond-the-hello-world#/5/3/0 (press down key to go through this column of slides) or watch the entire presentation https://www.youtube.com/watch?v=Q5djbLL1Pjg
yes a js file outside cypress folder
Il mar 16 feb 2021, 17:42 Gleb Bahmutov notifications@github.com ha scritto: