# Installing node-red modules

**URL:** <https://discourse.nodered.org/t/installing-node-red-modules/9456>\
**Category:** General\
**Created:** [26 March 2019 15:04 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456 "2019-03-26T15:04:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlosglez](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@carlosglez](https://discourse.nodered.org/u/carlosglez)\
**Post date:** [26 March 2019 15:04 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/1 "2019-03-26T15:04:15Z")

</div>

Hi,

I want to install a node-red module in a multitech conduit gateway. The problem is that the gateway doesn't have internet connection so I can't use npm. I am trying to download from github the module and send it to the gateway via SFTP (WinSCP). I put it in the directory "/opt/node-red/node\_modules" but the problem is that de module doesn't appear in the node-red palette.

Thank you.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 March 2019 22:10 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/2 "2019-03-26T22:10:18Z")

</div>

I "think" (but am not sure) - that you can sftp the file into your home directory on the gateway, then ssh in - cd into the .node-red directory - and then run `npm install ../your_node_file_name` to install it- then stop and restart Node-RED.

But note the version of node.js and Node-RED on the gateway. Some newer nodes may or may not be installable on older versions.

---

<div class="post-metadata">

**Author:** ![carlosglez](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@carlosglez](https://discourse.nodered.org/u/carlosglez)\
**Post date:** [27 March 2019 12:05 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/3 "2019-03-27T12:05:33Z")

</div>

I tried what you suggested but I didn'g get any positive results. I finally got an internet connection, the problem is that commands like npm install -g "name of the node-red module" show me an error. Error is :

```auto
npm ERR! Linux 3.12.70
npm ERR! argv "node" "/usr/bin/npm" "install" "node-red-contri-opcua-master"
npm ERR! node v0.10.48
npm ERR! npm v2.15.1
npm ERR! code E404

npm ERR! 404 Not found : node-red-contri-opcua-master
npm ERR! 404
npm ERR! 404 'node-red-contri-opcua-master' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'node-red'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/node-red/node_modules/npm-debug.log

```

---

<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:** [27 March 2019 12:28 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/4 "2019-03-27T12:28:55Z")

</div>

> [@carlosglez](#):
>
> node-red-contri-opcua-master

Spot the typo.  
But your node version (0.10.8) is ancient. The recommended versions for node-red and 8.x or 10.x. The npm is also ancient.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [27 March 2019 12:43 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/5 "2019-03-27T12:43:59Z")

</div>

@colin I’m not sure later versions of nodejs are available for the multi tech device.

---

<div class="post-metadata">

**Author:** ![carlosglez](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@carlosglez](https://discourse.nodered.org/u/carlosglez)\
**Post date:** [27 March 2019 13:53 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/6 "2019-03-27T13:53:15Z")

</div>

I known that both are ancient versions. The problem is that I am not being able to update node and npm because I obtain error messages. I don't know if it's due to I am working with a multitech device. If someone could tell me if it's possible I would really appreciate it

---

<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:** [27 March 2019 13:58 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/7 "2019-03-27T13:58:13Z")

</div>

So did you fix the typo error in your install command that I pointed out?

---

<div class="post-metadata">

**Author:** ![carlosglez](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@carlosglez](https://discourse.nodered.org/u/carlosglez)\
**Post date:** [27 March 2019 14:00 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/8 "2019-03-27T14:00:23Z")

</div>

yes but it didn't work

---

<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:** [27 March 2019 14:03 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/9 "2019-03-27T14:03:44Z")

</div>

So show us the error you get when you install using npm install. Presumably it is a different error.  
Copy/paste the result of the install command here. It may well be that they don't work with the old nodejs and npm.

---

<div class="post-metadata">

**Author:** ![carlosglez](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@carlosglez](https://discourse.nodered.org/u/carlosglez)\
**Post date:** [27 March 2019 14:09 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/10 "2019-03-27T14:09:30Z")

</div>

the error now is the following:

```auto
npm ERR! Linux 3.12.70
npm ERR! argv "node" "/usr/bin/npm" "install" "node-red-contrib-opcua-master"
npm ERR! node v0.10.48
npm ERR! npm v2.15.1
npm ERR! code E404

npm ERR! 404 Not found : node-red-contrib-opcua-master
npm ERR! 404
npm ERR! 404 'node-red-contrib-opcua-master' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'node-red'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/node-red/node_modules/npm-debug.log

```

---

<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:** [27 March 2019 14:16 UTC](https://discourse.nodered.org/t/installing-node-red-modules/9456/11 "2019-03-27T14:16:46Z")

</div>

> [@carlosglez](#):
>
> 'node-red-contrib-opcua-master' is not in the npm registry

Sometimes there is a clue in the error message. Did you try searching for that on the npm site? It isn't there. There is a node-red-contrib-opcua.  
Are you sure you have the right name?
