Closed mspsoft closed 1 month ago
@bimalkjha - Please look at the above issue
@mspsoft You do not see build folder because installation of ibm_db is not successful. It seems you shared very less output of npm install ibm-db
command. If it is full output, then it seems some issue.
Do you get ibm_db directory under node_modules post installation? If yes, then cd to the ibm_db directory and then run npm install --verbose
and share the complete output here. Thanks.
Hello @bimalkjha
Thanks for the response, ibm_db directory is created under node_modules post installation, below is the response I am getting on running npm install --verbose from the ibm_db directory
ibm_db@3.2.4 install
node installer/driverInstall.js
platform = win32, arch = x64, node.js version = v20.11.1
You are downloading a package which includes the Node.js module for IBM DB2/Informix. The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in C:\Users\abc112\Documents\newworkarea\UI New\qa-nodejs-modular-ui-core_db\node_modules\ibm_db\installer\clidriver. Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip ...
ERR_BAD_REQUEST : https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip Error 400: Bad Request - https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip Downloading DB2 ODBC CLI Driver from https://github.com/ibmdb/db2drivers/raw/main/clidriver/ntx64_odbc_cli.zip ...
ERR_BAD_REQUEST : https://github.com/ibmdb/db2drivers/raw/main/clidriver/ntx64_odbc_cli.zip Error 400: Bad Request - https://github.com/ibmdb/db2drivers/raw/main/clidriver/ntx64_odbc_cli.zip
up to date, audited 51 packages in 3s
3 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities npm verb exit 0 npm info ok
@mspsoft So, your installation is failing because ibm_db is unable to download clidriver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/ntx64_odbc_cli.zip or https://github.com/ibmdb/db2drivers/raw/main/clidriver/ntx64_odbc_cli.zip. Could you please check why it fails and resolve it? I am able to download files from both links.
To fix it, workaround is, download clidriver from any of the link, unzip it and save as clidriver under ibm_db/installer directory as clidriver. Then set system level environment variable IBM_DB_HOME=full-path-of-clidriver; then run npm install
under ibm_db directory. If IBM_DB_HOME is set, npm install will not try to download clidriver and use the existing one. Thanks.
@mspsoft Any update? Thanks.
I have installed ibm_db, but after installation the build folder is not generated, I am getting errors of 'could not find bindings'.
I have seen the already raised issue https://github.com/ibmdb/node-ibm_db/issues/991
and tried with below commands- npm install adm-zip@0.5.10 npm install ibm_db but still facing the same issue.
Here is the output of npm install --verbose
info using node@v20.11.1 npm verb title npm install ibm_db npm verb argv "install" "ibm_db" "--loglevel" "verbose" npm verb logfile logs-max:10 dir:C:\Users\abc\AppData\Local\npm-cache_logs\2024-04-26T10_06_15_048Z- npm verb logfile C:\Users\d2053\AppData\Local\npm-cache_logs\2024-04-26T10_06_15_048Z-debug-0.log npm http fetch GET 200 https://registry.npmjs.org/ibm_db 649ms (cache hit) npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 751ms npm http fetch GET 200 https://registry.npmjs.org/follow-redirects 206ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/xml2js 216ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/moment 261ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/express 273ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/emailjs 180ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@appium%2fbase-driver 137ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/axios 168ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/http-proxy 203ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/wdio-junit-to-html 251ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/@appium%2fbase-plugin 215ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/appium 347ms (cache hit)