question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to install without internet connection

See original GitHub issue

Hello, 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bimalkjhacommented, Jul 3, 2018

@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.

0reactions
vincenthodicqcommented, Jul 12, 2018

Hi @bimalkjha ,

sorry for the non update from my side. The comment that you provided was useful. Everything works now.

Regards

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install and Set Up Windows 11 Without an Internet ...
1. Bypass Out-of-the-Box-Experience (OOBE) Internet Requirement · 2. End Network Connection Flow Process Using Task Manager · 3. Directly Kill ...
Read more >
How to bypass internet connection to install Windows 11
To install Windows 11 without internet connection and using local account, in the OOBE using Shift + F10 and run the OOBEBYPASSNRO command....
Read more >
How to Install Windows 11 Without an Internet ... - groovyPost
Go through the initial setup screens and select your country on the first out-of-box-experience (OOBE) screen. · Next, choose your keyboard ...
Read more >
How to install Windows 11 without an ... - The Windows Club
Use Command Prompt to bypass internet connection · Boot the PC with the Windows 11 USB flash drive. · Press any key to...
Read more >
How to Setup Windows 11 Without Internet
If you do not have an Internet connection at the time of installation or prefer a more traditional offline experience, there is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found