# Upgrade Node-RED

**URL:** <https://discourse.nodered.org/t/upgrade-node-red/53314>\
**Category:** General\
**Created:** [6 November 2021 22:24 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314 "2021-11-06T22:24:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [6 November 2021 22:24 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/1 "2021-11-06T22:24:13Z")

</div>

Hi!

I just installed Node-RED on my UBUNTU 20.04 what I'm running on a Raspberry PI4.  
I want to you Dashboard, but it says at the installation phase, that my Node-RED is too old (due to the fact, that I only installed it today).

So, I continued with upgrading the Node-RED to the latest version to be able to use the dashboard.

I used the description from here:  
[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)  
When I run the script:

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

I got the following issue:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/5/c5634130d1b8ecb64c0e281c6b975826b37aea46.png)

I tried to check the help like this:

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)--help

```

but the terminal says "No such file or directory"

Could you tell me how I can upgrade to the latest Node-RED version to be able to use the Dashboard? It's really important for me, I would like to use this for a robot project which is the topic of my Master Thesis, what I have to finish until 10th of Dec!

Node-RED version: v10.19.0

---

<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:** [6 November 2021 22:27 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/2 "2021-11-06T22:27:16Z")

</div>

You need a space before the extra parameters you're adding to the the bash command.

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [6 November 2021 22:32 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/3 "2021-11-06T22:32:44Z")

</div>

Hello!

Thank you!

Now I can see the help menu. What do you suggest, how should I proceed to upgrade my Node-RED?

---

<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:** [6 November 2021 22:37 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/4 "2021-11-06T22:37:53Z")

</div>

As the message says, you need to update your node.js runtime.

Run the bash command with `--node14` added (with a space before it!)

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [6 November 2021 22:47 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/5 "2021-11-06T22:47:11Z")

</div>

I run to failure. It says now Npm is missing. I remember, that today I upgraded this, maybe without success.

From where I can get this?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c9ee6b02d5d2d1ea37a4bc9906e8033db6db53c7.png)

---

<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:** [6 November 2021 22:59 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/6 "2021-11-06T22:59:00Z")

</div>

It should have been installed as part of the node 14 install. But something has gone wrong. I'm not familiar enough with the script to suggest what has happened. Hopefully @dceejay can help.

---

<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:** [7 November 2021 09:58 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/7 "2021-11-07T09:58:49Z")

</div>

Not sure why it didn’t uninstall node10. Are you using something like n or nvm to manage node installs ?

At this point I think you will need to manually uninstall the existing node and then retry the script.

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [7 November 2021 15:15 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/8 "2021-11-07T15:15:35Z")

</div>

Hi!  
It's called npm. I used this article as a guideline, because my setup is totally the same. Ubuntu 20.04 on a Raspberry.

> **[Raspberry Pi Ubuntu 20.04 Node-red](https://aesmit.org/2020/05/07/raspberry-pi-ubuntu-20-04-node-red/)**
>
> Node-red is a flow based development tool I use at home for getting my sensor-data in an Influx-database and with a Grafana front-end expose the data. That setup runs on a Intel NUC with Ubuntu 18.…

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [7 November 2021 15:55 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/9 "2021-11-07T15:55:30Z")

</div>

The 'official' install guide would have been a better option to install node-RED - [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)  
It would have been better supported, and the same script used to update your installation when they are published.

 ![install](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/523e05698a0287bb147c99304fedfbf3475c2fdc.jpeg)

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [7 November 2021 16:52 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/10 "2021-11-07T16:52:40Z")

</div>

Hello Paul!

Basically I restored the system with backup option in Ubuntu. Then I tried again according to the guideline, what you propose. But I get the same fault.

" Install Node.js 14 LTS ✘ Bad install: Node.js v10.19.0 Npm missing - Exitcache "

How to get rid of this old V10.19.0 Node.js ultimately?

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [7 November 2021 17:01 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/11 "2021-11-07T17:01:50Z")

</div>

Have you tried

```auto
sudo apt-get remove nodejs
sudo apt-get purge nodejs

```

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [7 November 2021 17:04 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/12 "2021-11-07T17:04:06Z")

</div>

...and then try the install script again.

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [7 November 2021 17:11 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/13 "2021-11-07T17:11:33Z")

</div>

I tried it as you wrote:

first

> sudo apt-get remove nodejs  
> sudo apt-get purge nodejs

Then

> sudo apt-get remove nodejs sudo apt-get purge nodejs

Then

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node14

```

And I got the same.

I can't beleive this 😕

What else can I do?

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [7 November 2021 17:22 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/14 "2021-11-07T17:22:07Z")

</div>

wierd

run once more

`node -v`  
and  
`npm - v`

if node - v gives you a version but npm doesnt as the Node-red script reports ..  
then lets try the reverse and install it

`sudo apt install npm`

and re-run the official script .. you know the drill 😉

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [7 November 2021 17:48 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/15 "2021-11-07T17:48:49Z")

</div>

You were right. I did not have npm. So I installed one with  
`sudo apt install npm`  
Then I ran the offical script again and it stopped at the same point with the same alarm message. I think this official script removes it, then it is complaining that it does not exist..

I tried 2 times with the same result. First install npm, check with

> npm -v
> 
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9475da74469219d4183b0d7e7eef4cc476e8008.png)

Then run the official script, check again the

> npm -v
> 
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/0596cb927ec2a966a892392a5792375e9a645b01.png)

and it's gone. I think the problem is in the official script! 😃

Any other option to update Node-RED?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [7 November 2021 18:03 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/16 "2021-11-07T18:03:53Z")

</div>

Don't get dishearted!  
It's a weekend when the node-RED team will be spending time with their families, but I'm sure @dceejay will offer some advice when he's next around.

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [7 November 2021 18:07 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/17 "2021-11-07T18:07:46Z")

</div>

Sure, no problem. I don't want to steal your family time!

The thing is during daytime I'm working, so for me the only options to have fun with Node-RED is nights and weekends. By the way, this part is not such a fun... (:

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [7 November 2021 18:12 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/18 "2021-11-07T18:12:07Z")

</div>

Just checking your question I do not use any n or NVM. Should I?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [7 November 2021 18:20 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/19 "2021-11-07T18:20:41Z")

</div>

No, you shouldn't use n or nvm.

---

<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:** [7 November 2021 18:33 UTC](https://discourse.nodered.org/t/upgrade-node-red/53314/20 "2021-11-07T18:33:58Z")

</div>

What does. which node report ?  
What hardware/processor is this on ? It’s not 32 bit is it ?

[Next page](https://discourse.nodered.org/t/upgrade-node-red/53314.md?page=2)
