× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Actually the error from ibm_db install is different, I thought it was the
same, here is there form ibm_db

[bash]$npm i ibm_db
-
ibm_db@2.2.1 install /home/KEVIN/devel/ects_learn/node_modules/ibm_db
node installer/driverInstall.js

Downloading DB2 ODBC CLI Driver from
https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/aix32_odbc_cli.tar.gz.
..

100.00% | 27315094 bytes downloaded out of 27315094 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 ERR! build error
gyp ERR! stack Error: not found: gmake
gyp ERR! stack at F
(/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/which/which.js:63:19)
gyp ERR! stack at E
(/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/which/which.js:72:29)
gyp ERR! stack at
/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/which/which.js:81:16
gyp ERR! stack at
/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack at
/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System OS400 7.2
gyp ERR! command "/QOpenSys/QIBM/ProdData/OPS/Node6/bin/node"
"/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"configure" "build" "--IS_DOWNLOADED=true"
"--IBM_DB_HOME=/home/KEVIN/devel/ects_learn/node_modules/ibm_db/installer/clidriver"
gyp ERR! cwd /home/KEVIN/devel/ects_learn/node_modules/ibm_db
gyp ERR! node -v v6.11.5
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

at ChildProcess.exithandler (child_process.js:198:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:920:16)
at Socket.<anonymous> (internal/child_process.js:351:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:497:12)
killed: false,
code: 1,
signal: null,
cmd: 'node-gyp configure build --IS_DOWNLOADED=true
--IBM_DB_HOME="$IBM_DB_HOME"' }
npm ERR!
───────────────────────

On Thu, Mar 29, 2018 at 11:00 AM, Kevin Nunn <nunn.kevin@xxxxxxxxx> wrote:

I am learning/experimenting with Nodejs on the iSeries and apparently I
have broken something with npm. Nodejs still seems to be working fine, but
trying to install some thing with npm results in an error.

Possible cause, I found instructions on how to get yum/rpm installed, got
that done and got some of my tools I am more familiar with installed (nano,
less, etc). I also installed Node 8, but had issues with since v6 was in
the default path and when trying to run v8 I would get library errors, so I
used "yum erase" to remove node v8 and it was removed without an issue. I
figure either installing v8 or removing it broke something with npm. I am
just not sure what I can do to get things working again.

The issue: I have tried to install both ibm-db2 and node-jt400 to learn to
communicate with db2 on the i, and both result with the following error and
crash the shell. Any help would be appreciated. It looks like something in
node-gyp is dying.

Here is the results from an attempt:

[bash]$node -v
v6.11.5
[bash]$npm -v
2.15.1
[bash]$which node
/usr/bin/node
[bash]$which npm
/usr/bin/npm
[bash]$npm i node-jt400
\
java@0.8.0 install /home/KEVIN/devel/ects_learn/
node_modules/node-jt400/node_modules/java
node-gyp rebuild

gyp: Undefined variable javahome in binding.gyp while trying to load
binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/QOpenSys/QIBM/ProdData/Node/
lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:422:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:219:12)
gyp ERR! System OS400 7.2
gyp ERR! command "/QOpenSys/QIBM/ProdData/OPS/Node6/bin/node"
"/QOpenSys/QIBM/ProdData/Node/lib/node_modules/npm/node_
modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/KEVIN/devel/ects_learn/node_modules/node-jt400/node_
modules/java
gyp ERR! node -v v6.11.5
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR!
────────────────────────────────────────────────────────────
─────────────────────────────────────────────

Session stopped


--
*Kevin Nunn <https://about.me/kevinnunn>*





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.