All,
When I am trying to install on my docker image of node-RED node-red-contrib-db2 or node-red-contrib-db2-fixed I was initially having an error around " ReferenceError: primordials is not defined
". I was able to resolve that by following the suggestions here to change the package.json file (instructions under using npm around overrides & preinstall scripts). After that, when I try the install I get the following error:
~ $ npm install node-red-contrib-db2
npm WARN deprecated tar.gz@0.1.1: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated tar@0.1.20: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm ERR! code 1
npm ERR! path /usr/src/node-red/node_modules/ibm_db
npm ERR! command failed
npm ERR! command sh -c node installer/driverInstall.js
npm ERR! Downloading DB2 ODBC CLI Driver from http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxia32_odbc_cli.tar.gz...
npm ERR! (node:3177) Warning: Accessing non-existent property 'Reader' of module exports inside circular dependency
npm ERR! (Use `node --trace-warnings ...` to show where the warning was created)
npm ERR! (node:3177) Warning: Accessing non-existent property 'Reader' of module exports inside circular dependency
npm ERR! node:events:505
npm ERR! throw er; // Unhandled 'error' event
npm ERR! ^
npm ERR!
npm ERR! Error: connect ECONNREFUSED 129.35.224.112:80
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
npm ERR! Emitted 'error' event on ClientRequest instance at:
npm ERR! at Socket.socketErrorListener (node:_http_client:454:9)
npm ERR! at Socket.emit (node:events:527:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! errno: -111,
npm ERR! code: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '129.35.224.112',
npm ERR! port: 80
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /data/.npm/_logs/2023-04-28T09_24_30_739Z-debug-0.log
Any ideas? I tried to ping the IP 129.35.224.112 from docker terminal and seems to be OK but if I try to go to the webpage mentioned in the errors from my local computer it doesn't seem to work so I wonder if something is off that is not allowing to download the .tar.gz