# Updating Node Red on a PC

**URL:** <https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143>\
**Category:** General\
**Created:** [20 October 2018 15:08 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143 "2018-10-20T15:08:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 15:08 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/1 "2018-10-20T15:08:18Z")

</div>

Hi,

I have been looking for info on how to update Node-Red to the latest version on a PC, l can see how to install but nothing on updating, if anyone could give me a hint I would be most grateful.

thanks  
Stuart

---

<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:** [20 October 2018 15:22 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/2 "2018-10-20T15:22:43Z")

</div>

The significant information needed is not that it is a PC but what Operating System you are running. Ubuntu, Debian, Windows etc.

---

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 15:38 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/3 "2018-10-20T15:38:00Z")

</div>

Hi, Of course, I am running windows 10 on this PC

thanks  
Stuart

---

<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:** [20 October 2018 15:49 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/4 "2018-10-20T15:49:20Z")

</div>

I don't use Windows, but this looks as if it might be helpful  
[https://nodered.org/docs/getting-started/upgrading.html](https://nodered.org/docs/getting-started/upgrading.html)

---

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 15:54 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/5 "2018-10-20T15:54:26Z")

</div>

Thanks Colin but the sudo commands suggest that this is for a raspberry pi, if you click on windows to the left it explains how to install but not how to upgrade....

thanks  
Stuart

---

<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:** [20 October 2018 16:01 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/6 "2018-10-20T16:01:19Z")

</div>

how did you install nodejs and nodered?  
Do you need to update them both or just node-red?

If you are updating nodejs are you jumping versions eg v6 to v8?

---

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 16:14 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/7 "2018-10-20T16:14:03Z")

</div>

Hi, ukmoose,

I installed it some time ago on this pc so it is all outdated now, as far as I can remember I installed node.js first then node-red, I think I followed the instructions on the node-red website, as far as I can see it might be easier to just delete the folders and reinstall everything

thanks  
Stuart

---

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 16:22 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/8 "2018-10-20T16:22:02Z")

</div>

Hi,

I have just checked and I have node js version 8.10

thanks

---

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 16:29 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/9 "2018-10-20T16:29:33Z")

</div>

Hi,

I have noticed that node.js is now at version 10.12 , should I update to this or will node-red not work with this version ?

thanks  
Stuart

---

<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:** [20 October 2018 16:32 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/10 "2018-10-20T16:32:13Z")

</div>

What does it say on the Node-RED website? [https://nodered.org/docs/getting-started/installation](https://nodered.org/docs/getting-started/installation)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [20 October 2018 16:33 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/11 "2018-10-20T16:33:43Z")

</div>

@acestu to install node-red you would have followed the install docs and run

```auto
npm install -g --unsafe-perm node-red

```

The upgrade instructions say:

> If you have installed Node-RED as a global npm package, you can upgrade to the latest version with the following commands:
> 
> ```auto
> sudo npm install -g --unsafe-perm node-red
> 
> ```

Now, the `sudo` bit isn't needed on Windows... so you can just run:

```auto
npm install -g --unsafe-perm node-red

```

There's no need to change your version of Node.js, 8 is the current LTS version which is a good place to be.

Node-RED will run happily on 10, but it gets a tiny bit more complicated to upgrade both node.js _and_ node-red. So tackle one thing at a time.

---

<div class="post-metadata">

**Author:** ![acestu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/acestu/32/90408_2.png) [@acestu](https://discourse.nodered.org/u/acestu)\
**Post date:** [20 October 2018 16:44 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/12 "2018-10-20T16:44:35Z")

</div>

Thank you knolleary,

that worked a treat, I was going to do this but I thought it may install a new copy over my old copy losing all my flows etc.

Thanks again  
Stuart

---

<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:** [21 October 2018 00:14 UTC](https://discourse.nodered.org/t/updating-node-red-on-a-pc/4143/13 "2018-10-21T00:14:34Z")

</div>

And to upgrade NodeJS, simply download the latest version and install. You can stick with v8.x as Nick says.

There are other ways to install and update Node but that is by far the simplest and most reliable.
