Impossible to install without internet connection
See original GitHub issueHello, I have to install ibm_db module from a Linux Red Hat 7 server without any internet connection. This server is configured to use Nexus as npm proxy. I have no problem installing any npm package except ibm_db. As our server does not have internet connection, I downloaded linuxx64_odbc_cli.tar.gz file, put it in a folder lib. I created a variable named IBM_DB_INSTALLER_URL, like detailed on ibm_db documentation, that contains the path to lib folder. Installer successfully retrieves the driver but failed after when trying to connect another server. Please find below the full error.
Thanks in advance for your help.
Vincent
``> ibm_db@2.2.1 install /opt/myApp/node_modules/ibm_db
node installer/driverInstall.js
Downloading DB2 ODBC CLI Driver from /opt/lib/linuxx64_odbc_cli.tar.gz…
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 undefined 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 and extraction of DB2 ODBC CLI Driver completed successfully …
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME=“$IBM_DB_HOME” gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ETIMEDOUT 104.20.23.46:443 gyp ERR! stack at Object.exports._errnoException (util.js:1022:11) gyp ERR! stack at exports._exceptionWithHostPort (util.js:1045:20) gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14) gyp ERR! System Linux 3.10.0-862.3.3.el7.x86_64 gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “build” “–IS_DOWNLOADED=true” “–IBM_DB_HOME=/opt/myApp/node_modules/ibm_db/installer/clidriver” gyp ERR! cwd /opt/myApp/node_modules/ibm_db gyp ERR! node -v v6.9.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
killed: false, code: 1, signal: null, cmd: ‘node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME=“$IBM_DB_HOME”’ }``
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
@vincenthodicq The error says that there is no node.js header files under
/var/lib/node
directory. Actually,node-gyp
requires internet connection to download the v8 header files. We can use--nodedir
option if header files are already downloaded previously. Please check this comment that should help you. Thanks.Hi @bimalkjha ,
sorry for the non update from my side. The comment that you provided was useful. Everything works now.
Regards