# Updating Node.js & Node-Red Help

**URL:** https://discourse.nodered.org/t/updating-node-js-node-red-help/100773
**Category:** General
**Created:** [15 April 2026 08:01 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773 "2026-04-15T08:01:03Z")
**Posts on this page:** 6
**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: [15 April 2026 08:01 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773/1 "2026-04-15T08:01:03Z")

</div>

Hi,

I am currently using Node.js ver 18.20.8 and node-red ver 4.1.8 , when I run the update script it exits and tells me that node-red no longer support node.js 18.xx , it then tells me that I can force the installation of Node.js 22.xx by adding --node22 to the end of the update script, I have tried this and it returns No such file or directory, am I doing this right ?

P.S. it is on a Raspberry Pi

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: [15 April 2026 08:38 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773/2 "2026-04-15T08:38:33Z")

</div>

Did you add a space before --node22? If you did then where do you see the error message? If it is right after starting the command then copy/paste the text you see, including the command you entered. Copy/paste text please, not screenshot.

If the error is after the command has started then copy/paste the install log please. /var/log/nodered-install.log

What type of pi is it and what OS version are you running.  
`cat /etc/os-release` will tell you that.

---

<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: [15 April 2026 19:21 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773/3 "2026-04-15T19:21:40Z")

</div>

Hi Colin, thanks for the info, I will check it tomorrow as I don’t have it here

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: [16 April 2026 07:47 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773/4 "2026-04-16T07:47:11Z")

</div>

Hi Colin,

I have a Pi 5, and this is my OS:

PRETTY\_NAME="Debian GNU/Linux 12 (bookworm)"  
NAME="Debian GNU/Linux"  
VERSION\_ID="12"  
VERSION="12 (bookworm)"  
VERSION\_CODENAME=bookworm  
ID=debian

It seems that all that was needed was a simple space before ---node22 all went well after this, I appreciate your Help

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: [16 April 2026 08:26 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773/5 "2026-04-16T08:26:27Z")

</div>

`--node22` is a command line parameter. Parameters in commands always need to be separated by spaces.

---

<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: [30 April 2026 08:26 UTC](https://discourse.nodered.org/t/updating-node-js-node-red-help/100773/6 "2026-04-30T08:26:34Z")

</div>

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