# Install new nodes in NodeRed without internet connection

**URL:** https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986
**Category:** General
**Created:** [3 April 2024 20:52 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986 "2024-04-03T20:52:22Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![TadeoRodriguez](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@TadeoRodriguez](https://discourse.nodered.org/u/TadeoRodriguez)
#### Post date: [3 April 2024 20:52 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/1 "2024-04-03T20:52:22Z")

</div>

**Good afternoon everyone!**  
I have an environment with NodeRed and I need to install the packages: node-red-contrib-opcua and node-red-contrib-s7.

Is it possible to add these modules in the environment without internet? as I can't access manage pallete.  
I would need help and know how to do this.

Regards

Tadeo

---

<div class="post-metadata">

### Author: ![hominidae](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hominidae/32/4174_2.png) [@hominidae](https://discourse.nodered.org/u/hominidae)
#### Post date: [3 April 2024 21:00 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/2 "2024-04-03T21:00:49Z")

</div>

I don't know ho to do this manually with the files, like from a local drive/USB.  
But assuming that the host node-red is running on has some kind of networking capabilities, the easier method would be to bring (mobile) internet to the site for the time you do the install....use a mobile phone as Wifi-hotspot maybe?

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [4 April 2024 07:53 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/3 "2024-04-04T07:53:55Z")

</div>

You can load individual .tgz (i.e. package archives) into Node-RED using the upload button in the install tab of the palette manager:

![Screenshot 2024-04-04 at 09.51.26](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6da7b873157b425d5275038e11b221bc5ce2873b.png)

You might or might not have this feature depending on your installation (e.g. FlowFuse community edition does not have this feature).

---

<div class="post-metadata">

### Author: ![TadeoRodriguez](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@TadeoRodriguez](https://discourse.nodered.org/u/TadeoRodriguez)
#### Post date: [4 April 2024 11:41 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/4 "2024-04-04T11:41:00Z")

</div>

Thanks for both!  
The server where NodeRed is running does not have Internet access (for security reasons), so it could not perform this task.  
But I can upload package! Now my question is if this type of node ([node-red-contrib-s7](https://www.npmjs.com/package/node-red-contrib-s7)) I can install only the first package or I have to install all the ones that are appearing in node\_modules.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/4026e9ef98451fe1555d81d8eb6f41db2e5c9810.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/da3b96b526917904d760beae74b862a78d35da88.png)

Thank you!  
BR

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [4 April 2024 12:04 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/5 "2024-04-04T12:04:00Z")

</div>

you can get the .tgz for any packages by first looking at [https://registry.npmjs.org/node-red-contrib-s7](https://registry.npmjs.org/node-red-contrib-s7)

That gives you a .json and somewhere under versions:

 ![Screenshot 2024-04-04 at 14.01.15](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/6/e6496a64048ca43982c8f5ba6f1f9a979f65de86.png)

you can the .tgz file for your package.

---

<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: [4 April 2024 12:17 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/6 "2024-04-04T12:17:54Z")

</div>

Another alternative is to setup another machine that does have internet access with exactly the same OS and version with the same version of nodejs and the same node-red installed in the same way. Then install the node on that machine and copy the whole .node-red folder (or wherever your node red user directory is) to the production machine.

---

<div class="post-metadata">

### Author: ![TadeoRodriguez](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@TadeoRodriguez](https://discourse.nodered.org/u/TadeoRodriguez)
#### Post date: [4 April 2024 14:01 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/7 "2024-04-04T14:01:00Z")

</div>

> [@TadeoRodriguez](#):
>
> Thanks for both!  
> The server where NodeRed is running does not have Internet access (for security reasons), so it could not perform this task.  
> But I can upload package! Now my question is if this type of node ([node-red-contrib-s7](https://www.npmjs.com/package/node-red-contrib-s7)) I can install only the first package or I have to install all the ones that are appearing in node\_modules.
> 
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/4026e9ef98451fe1555d81d8eb6f41db2e5c9810.png)
> 
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/da3b96b526917904d760beae74b862a78d35da88.png)
> 
> Thank you!  
> BR

I have tried in a similar environment, I installed Node-RED, disconnected the PC from the network and I can't load the .tgz. I get the following log:

```auto
-----------------------------------------------------------
2024-04-04T13:29:10.254Z Instalar : node-red-contrib-s7-0.1.0.tgz

2024-04-04T13:29:10.640Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict C:\Users\54935\.node-red\nodes\node-red-contrib-s7-0.1.0.tgz
2024-04-04T13:29:11.399Z [err] npm
2024-04-04T13:29:11.400Z [err] WARN config production Use --omit=dev instead.
2024-04-04T13:30:45.927Z [err] npm ERR!
2024-04-04T13:30:45.927Z [err] code ENOTFOUND
2024-04-04T13:30:45.927Z [err] npm ERR! 
2024-04-04T13:30:45.927Z [err] syscall getaddrinfo
2024-04-04T13:30:45.927Z [err] npm ERR!
2024-04-04T13:30:45.927Z [err]  
2024-04-04T13:30:45.928Z [err] errno ENOTFOUND
2024-04-04T13:30:45.932Z [err] npm ERR! network
2024-04-04T13:30:45.932Z [err] request to https://registry.npmjs.org/nodes7 failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
2024-04-04T13:30:45.932Z [err] npm 
2024-04-04T13:30:45.932Z [err] ERR! network This is a problem related to network connectivity.
2024-04-04T13:30:45.932Z [err] npm ERR! network In most cases you are behind a proxy or have bad network settings.
2024-04-04T13:30:45.932Z [err] npm ERR! network 
2024-04-04T13:30:45.933Z [err] npm ERR! network If you are behind a proxy, please make sure that the
2024-04-04T13:30:45.933Z [err] npm ERR!
2024-04-04T13:30:45.933Z [err] network 'proxy' config is set properly. See: 'npm help config'
2024-04-04T13:30:45.938Z [err] 
2024-04-04T13:30:45.938Z [err] npm ERR! A complete log of this run can be found in: C:\Users\54935\AppData\Local\npm-cache\_logs\2024-04-04T13_29_11_358Z-debug-0.log
2024-04-04T13:30:45.955Z rc=1

```

I then tested by connecting the PC to the network and the installation ran successfully.  
What other way could I try?

BR

* * *

_Admin edit: wrap logs in a code bock for reabaility and preserving formatting_

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 April 2024 14:12 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/8 "2024-04-04T14:12:30Z")

</div>

> [@TadeoRodriguez](#):
>
> I have tried in a similar environment, I installed Node-RED, disconnected the PC from the network and I can't load the .tgz. I get the following log:

The tgz does not contain all the dependencies so tries to get them from NPM - so you have the same issue as before.

I wrote a reply on a potential solution some weeks back - i will see if I can find it.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [4 April 2024 14:13 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/9 "2024-04-04T14:13:35Z")

</div>

> [@Steve-Mcl](#):
>
> I wrote a reply on a potential solution some weeks back - i will see if I can find it.

Here you go: [Can't install node-red-contrib-chart-image - #4 by Steve-Mcl](https://discourse.nodered.org/t/cant-install-node-red-contrib-chart-image/85460/4)

Perhaps you will try this and let us all know (unlike the OP in the linked thread who never bother to?)

---

<div class="post-metadata">

### Author: ![TadeoRodriguez](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@TadeoRodriguez](https://discourse.nodered.org/u/TadeoRodriguez)
#### Post date: [4 April 2024 18:39 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/10 "2024-04-04T18:39:38Z")

</div>

I have managed to install the node-red-contrib-s7 package as you specified, but the same has not happened with node-red-contrib-opcua. The latter took longer to compress and then gave me an error on installation.

```auto
2024-04-04T16:26:25.533Z Instalar : node-red-contrib-opcua-0.2.323.tgz

2024-04-04T16:28:42.132Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict C:\Users\54935\.node-red\nodes\node-red-contrib-opcua-0.2.323.tgz
2024-04-04T16:28:42.745Z [err] npm
2024-04-04T16:28:42.745Z [err] WARN config production Use `--omit=dev` instead.
2024-04-04T16:35:34.174Z [out] 
2024-04-04T16:35:34.174Z [out] added 1 package in 7m
2024-04-04T16:35:34.209Z rc=0

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/3/435128e9dc594148ba515b59b86bc033aac9a039.png)

---

<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: [3 July 2024 18:40 UTC](https://discourse.nodered.org/t/install-new-nodes-in-nodered-without-internet-connection/86986/11 "2024-07-03T18:40:10Z")

</div>

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