# How can I update Node-Red Application in an offline Environment?

**URL:** https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821
**Category:** General
**Created:** [28 December 2022 11:10 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821 "2022-12-28T11:10:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![joshinger](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joshinger/32/73342_2.png) [@joshinger](https://discourse.nodered.org/u/joshinger)
#### Post date: [28 December 2022 11:10 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/1 "2022-12-28T11:10:10Z")

</div>

I would like to update node-red in an offline environment. Node-red is running on a hyper-v ubuntu machine.  
node.js version is v14.18.0 and node-red version is 2.0.6. I would like to update node-red to version 3.0.2.  
I can download the latest release from github (node-red). But how can I manually update node-red?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [28 December 2022 13:11 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/2 "2022-12-28T13:11:51Z")

</div>

You can simply copy across the appropriate folder as long as the host and the guest OS are of the same platform type. To do this with a "standard" install of node-red (e.g. global install), you need to first track down the installation folder. `whereis node-red` may do that for you (from a PowerShell terminal).

It is easier (in my opinion), to install node-red locally so that everything is in a location specified by you. I created a quick and dirty tool for doing that [TotallyInformation/alternate-node-red-installer: An alternative installer for Node-RED. Avoids global installs, no admin rights required. (github.com)](https://github.com/TotallyInformation/alternate-node-red-installer).

If using that, then both node-red itself and its `userDir` folder sit together and you can install/updated on even another device then copy everything over as long as the two OS's are similar.

---

<div class="post-metadata">

### Author: ![joshinger](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joshinger/32/73342_2.png) [@joshinger](https://discourse.nodered.org/u/joshinger)
#### Post date: [29 December 2022 13:30 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/3 "2022-12-29T13:30:48Z")

</div>

Thank you, for your solution!  
In my case, node-red is "normal" installed.

WHEREIS NODE-RED -\> /usr/local/bin/node-red

Does that mean, that I have to set up a OS with same platform type and install "normal" the newest version of node-red. After that, i can copy/paste the node-red folders and override it on my offline target system. If so, then this will be my solution 🙂

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 December 2022 14:33 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/4 "2022-12-29T14:33:50Z")

</div>

> [@joshinger](#):
>
> I have to set up a OS with same platform type

Yes.

> [@joshinger](#):
>
> install "normal" the newest version of node-red

That is one way to do it. Alternatively, ditch the "normal" install and do a local install instead so that you have the location in a path of your choosing.

If doing global installs, you need to have `sudo` access to both OS instances of course.

---

<div class="post-metadata">

### Author: ![joshinger](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joshinger/32/73342_2.png) [@joshinger](https://discourse.nodered.org/u/joshinger)
#### Post date: [30 December 2022 12:57 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/5 "2022-12-30T12:57:11Z")

</div>

Hi thanks, yes you're right, i need sudo access on both OS instances if i doing a global install.

Maybe it's better with your offline installer, but it's not so easy to make a clean deinstallation/ditch, isn't it?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [30 December 2022 16:45 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/6 "2022-12-30T16:45:59Z")

</div>

> [@joshinger](#):
>
> Maybe it's better with your offline installer, but it's not so easy to make a clean deinstallation/ditch, isn't it?

It is actually much easier. Since you can simply delete the containing folder and everything is gone.

---

<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: [28 February 2023 16:46 UTC](https://discourse.nodered.org/t/how-can-i-update-node-red-application-in-an-offline-environment/72821/7 "2023-02-28T16:46:31Z")

</div>

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