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



I've verified db tools are working on node6.. going to try with node8 one
day.

If you were using them with node4 before do be aware there were some major
changes to how then work, not limited to moving to async functions.

The examples and docs are not so great (seem hurried an unorganized), but I
was able to figure it out. Here's the link:
https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/The%20new%20DB2%20driver%20and%20toolkit%20for%20Node.js%20on%20IBM%20i
.
wiki <> docs IMHO

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #22 <https://www.bvstools.com/mailtool.html>: Cost
starting at under $300 a year per partition!

On Thu, Mar 29, 2018 at 1:50 PM, Kevin Nunn <nunn.kevin@xxxxxxxxx> wrote:

Thanks for the reply Kevin, I realize these packages are probably not the
most stable and easy to use. And I must admit I've been a bit anxious to
try to get the latest versions as I could, which was probably a mistake.

But I did figure out that db2 and itoolkit are already installed, so I
really didn't need to install them.

One issue I am finding is there is splashes of information out there, but
nothing seems complete. And if you try using parts from here and there, you
can really get confused! :)

So, I have been toying with db2 and itoolkit, they don't seem to be working
as they seem they should, so I'll create another thread to for that issue.

Kev


On Thu, Mar 29, 2018 at 11:12 AM, Turner, Kevin (ELS-CON) <
kevin@xxxxxxxxxxxxxx> wrote:

It has been a while since I played with node.js on an IBMi and there are
others here with a much better insight, but I didn’t think the node.js
implementation was quite as up to speed as you might be used to on other
platforms. By that I think you have to stick with the node versions that
are provided with 5733OPS. I don’t think you can just update to node 8
with impunity unless things have moved on considerably from where I left
off. Node-gyp probably now has no clue how to compile the stuff it needs
to
when installing. I had node-gyp issues back on an early version of the
node.js port in 5733OPS but I thought they had that fixed in later
versions.

On 29 Mar 2018, at 17:00, 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>*
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.




--
*Kevin Nunn <https://about.me/kevinnunn>*
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.


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.