# Db2 for i won't install

**URL:** <https://discourse.nodered.org/t/db2-for-i-wont-install/60060>\
**Category:** General\
**Created:** [18 March 2022 22:35 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060 "2022-03-18T22:35:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tes](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tes](https://discourse.nodered.org/u/tes)\
**Post date:** [18 March 2022 22:35 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/1 "2022-03-18T22:35:10Z")

</div>

I'm getting the following cryptic error. Any idea what this is about? I'm installing this thru SSH against an IBM i at V7r3.  
node -v  
v14.18.3

node-red -v  
v2.2.2

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 March 2022 07:55 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/2 "2022-03-19T07:55:14Z")

</div>

Welcome to the forum @tes

Please copy/paste here the full command you are using and the output.

---

<div class="post-metadata">

**Author:** ![tes](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tes](https://discourse.nodered.org/u/tes)\
**Post date:** [24 March 2022 19:29 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/3 "2022-03-24T19:29:47Z")

</div>

npm -g i node-red-contrib-db2-for-i

I have the output error in the previous msg but somehow they are not showing. Can you attach files on these posts?

---

<div class="post-metadata">

**Author:** ![tes](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tes](https://discourse.nodered.org/u/tes)\
**Post date:** [24 March 2022 19:34 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/4 "2022-03-24T19:34:26Z")

</div>

Also, we are now running IBM i OS v7r4

$ npm -g i node-red-contrib-db2-for-i  
npm ERR! code 127  
npm ERR! path /QOpenSys/pkgs/lib/nodejs14/lib/node\_modules/node-red-contrib-db2-for-i/node\_modules/idb-connector  
npm ERR! command failed  
npm ERR! command sh -c node-pre-gyp install --fallback-to-build  
npm ERR! sh: node-pre-gyp: not found

npm ERR! A complete log of this run can be found in:

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 March 2022 20:49 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/5 "2022-03-24T20:49:22Z")

</div>

Why are you installing using -g?

---

<div class="post-metadata">

**Author:** ![tes](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tes](https://discourse.nodered.org/u/tes)\
**Post date:** [24 March 2022 22:07 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/6 "2022-03-24T22:07:21Z")

</div>

global install versus specific user install, no?  
is that a problem for installs on the IBM i?

---

<div class="post-metadata">

**Author:** ![tes](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tes](https://discourse.nodered.org/u/tes)\
**Post date:** [24 March 2022 22:14 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/7 "2022-03-24T22:14:49Z")

</div>

I've also installed:  
npm -g I @mapbox/node-pre-gyp  
npm -g I node-pre-gyp

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 March 2022 07:13 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/8 "2022-03-25T07:13:27Z")

</div>

> [@tes](#):
>
> global install versus specific user install, no?  
> is that a problem for installs on the IBM i

I have no idea, but it is not the way the node's docs suggest installing, and it can be dangerous as, running as root, a bug or error in the flow could trash your system.  
The fact that no one with direct knowledge of the node or device has responded suggests that no one here has such experience. Probably the best route is to ask on the node's GitHub page.

---

<div class="post-metadata">

**Author:** ![tes](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tes](https://discourse.nodered.org/u/tes)\
**Post date:** [25 March 2022 15:49 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/9 "2022-03-25T15:49:17Z")

</div>

ok thanks. Would you have steps for installations on the IBM i?  
Also, I'm reading this module can only install on IBM i and not on windows?  
I saw also that they are developing an alternative to this module maybe thru ODBC. Any guess when that will be available or is there something else currently available?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 March 2022 18:59 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/10 "2022-03-25T18:59:46Z")

</div>

> [@tes](#):
>
> Would you have steps for installations on the IBM i?

It tells you on the node's page on the node red flows site, I believe.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 May 2022 18:59 UTC](https://discourse.nodered.org/t/db2-for-i-wont-install/60060/11 "2022-05-24T18:59:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
