Closed madsteer closed 6 years ago
node -v v10.9.0 -> It is the problem. Please use node v < 10.x and it should work. Thanks.
@madsteer Also, check this link for info if you still face xcode related issues after using lower version of node. Thanks.
I downgraded node. Don't think I'm having an Xcode issue now. trying to go to 104.20.22.46
which is not allowed for me at work. Do you know where it's going and what for?
100.00% | 20080158 bytes downloaded out of 20080158 bytes.
****************************************
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.22.46:443
gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1174:14)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/Users/<user>/.npm-global/lib/node_modules/node/bin/node" "/Users/<user>/.npm-global/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IS_DOWNLOADED=true" "--IBM_DB_HOME=/Users/<user>/dev/git/na/etl/node_modules/ibm_db/installer/clidriver"
gyp ERR! cwd /Users/<user>/dev/git/na/etl/node_modules/ibm_db
gyp ERR! node -v v9.11.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:273:12)
at ChildProcess.emit (events.js:180:13)
at maybeClose (internal/child_process.js:936:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
killed: false,
code: 1,
signal: null,
cmd: 'node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"' }
npm WARN cortex-etl@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.4.0 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
it's trying to get the headers tar from https://nodejs.org/download/release/v8.12.0/node-v8.12.0-headers.tar.gz If I get that resolved, I think it will install.
@madsteer Change ibm_db version to 2.4.1 in package.json too. Thanks.
gyp ERR! cwd /Users/
<user>
/dev/git/na/etl/node_modules/ibm_db
Why it is /Users/<user>
/... ? Shouldn't it use your username instead of export USER=<your_user_id>
I have a username. It redacted it for security reasons. I’ll double check the version in package.json
I got this to work by doing the following (keep in mind that corporate firewall prevents direct access to the internet).
$ node -v
v8.12.0 # make sure the version is < 10.* and note the version for the commands below
$ curl -o node-v8.12.0-headers.tar.gz <approved method for downloading https://nodejs.org/download/release/v8.12.0/node-v8.12.0-headers.tar.gz>
$ IBM_DB_INSTALLER_URL="<approved method for accessing the IBM repository/odbc_cli//<your plaform>_odbc_cli.tar.gz> npm i --tarball=<FQP/to/where/you/downloaded/>node-v8.12.0-headers.tar.gz
I'm baffled as to what the problem is. Seems to maybe be node-gyp related? Here's a snippet of my package.json file
Here's my output: