# Upgrade to v4.1.0

**URL:** <https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395>\
**Category:** General\
**Created:** [30 July 2025 15:33 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395 "2025-07-30T15:33:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)\
**Post date:** [30 July 2025 15:33 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/1 "2025-07-30T15:33:28Z")

</div>

Hi,

Upgrade 4.0.9 to 4.1.0 done (npm) and apparently with success.

The log shows - [info] Node.js version: v18.20.8, but i installed a while ago V22 for sake of ZigBee2MQTT.

I am not really familiar with Linux.

Is multiple versions an issue for NR ?

Is it advised to clean/remove older node.js ?

Thanks.

T

---

<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 July 2025 15:43 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/2 "2025-07-30T15:43:22Z")

</div>

You almost certainly have a node.js version manager such as `n` or `nvm` installed. This is a pain for most people and even though node.js are trying to push people towards it, it is totally unnecessary in most cases.

The problem being that every time you use one of those tools to change node.js version, any globally installed nodes have to be re-installed. This is also one of several reasons I don’t personally recommend that people do a global install of node-red.

But anyway, you are probably best off removing the version manager from your OS. If that breaks Node-RED, simply re-install it. You will not loose any data/config unless you also delete Node-RED’s `userDir` (normally `~/.node-red/` for the user id running node-red).

---

<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:** [30 July 2025 15:50 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/3 "2025-07-30T15:50:08Z")

</div>

> [@Tany](#):
>
> The log shows - [info] Node.js version: v18.20.8, but i installed a while ago V22 for sake of ZigBee2MQTT.

Assuming that you used  
`npm install --unsafe-perm node-red@latest`  
or something similar then that would not have changed the version of nodejs.

Running  
`node -v`  
and  
`which node`  
may throw some light on the subject.

---

<div class="post-metadata">

**Author:** ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)\
**Post date:** [30 July 2025 18:08 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/4 "2025-07-30T18:08:44Z")

</div>

> [@Tany](#):
>
> Node.js version: v18.20.8

Thanks for reply.

OS upgrades :  
sudo apt update  
NR : installed cfr instruction on NR site :  
sudo npm install -g --unsafe-perm node-red  
node.js installed with  
npm install -g pnpm  
node -v -\> v22.9.0, which is a requirement for major upgrade ZigBee2MQTT... which failed so far.  
I am in chat-process with AI-platforms for the proper and advised procedure. And again... 3 different approaches. ☹

as i installed both with "npm -g", why then is NR reporting "Node.js version: v18.20.8" ?  
In the end it's not so important as "I'm completely operational, and all my circuits are functioning perfectly." 🙂

As a newbee in RPI/LINUX... i work now with NR (with context on SSD), AEDES, ESP32, modbus, VPN, MariaDB, UZG-01 (coördinator) and ZigBee2MQTT.  
And UI : standard web page and socket.  
All the operational was surprisingly "straight forward" to work with... except the confusing multiple wow how to install.

They say we fly to mars ! Hope they do not work with linux. pfffffffffffff

Cheers.

T

---

<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:** [30 July 2025 21:19 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/5 "2025-07-30T21:19:18Z")

</div>

> [@Tany](#):
>
> node -v -\> v22.9.0,
> 
> > [@Tany](#):
> >
> > why then is NR reporting "Node.js version: v18.20.8"

As already mentioned, you are likely using a Node Version Manager like `n` or `nvm` or `fnm`. Running the command `which node` should give us a clue.

The version of Node that node-red runs under depends entirely on what you did in the beginning (i.e. which node manager you installed. Again, running the command `which node` should give us a clue)

NOTE: The recommended install is to NOT install a node manager especially if you are running as a service and dont really quite understand what that means. Far better sticking with a global install of Node

As it stands, your options are:

- learn about node version manager you have installed and set it to use Node 22 for the account/userdir that Node-RED runs in
- remove node manager and rely on globally installed node version

As for installation, if you are using a debian based OS (like Debian, unbuntu, raspian, etc), then the recommended install is via the [official installer script](https://nodered.org/docs/getting-started/raspberrypi).

---

<div class="post-metadata">

**Author:** ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)\
**Post date:** [31 July 2025 06:19 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/6 "2025-07-31T06:19:23Z")

</div>

ok.

`which node` returns : /home/rpi/. **nvm** /versions/node/v22.9.0/bin/node

I ‘ll stick to official installer script.

I checked Gemini how to remove nvm, and it is … back-up, deactivate, rm directory, shell clean up... will do.

Cheers,

T

---

<div class="post-metadata">

**Author:** ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)\
**Post date:** [1 August 2025 06:12 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/7 "2025-08-01T06:12:25Z")

</div>

Hi,

As mentioned i upgraded NR to Version 4.1.

At the bottom there is now an indication of update available : in casu AEDES.

When run i get this :

```auto
2025-08-01T06:02:05.876Z Install : node-red-contrib-aedes 0.15.0

```

```auto

```

```auto
2025-08-01T06:02:05.243Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-aedes@0.15.0

```

```auto
2025-08-01T06:02:12.481Z [err] npm error code EBADENGINE

```

```auto
2025-08-01T06:02:12.481Z [err] npm error engine Unsupported engine

```

```auto
2025-08-01T06:02:12.481Z [err] npm error engine Not compatible with your version of node/npm: node-red-contrib-aedes@0.15.0

```

```auto
2025-08-01T06:02:12.482Z [err] npm error notsup Not compatible with your version of node/npm: node-red-contrib-aedes@0.15.0

```

```auto
2025-08-01T06:02:12.482Z [err] npm error notsup Required: {"node":">=20.0.0"}

```

```auto
2025-08-01T06:02:12.482Z [err] npm error notsup Actual: {"npm":"10.8.2","node":"v18.20.8"}

```

```auto
2025-08-01T06:02:12.487Z [err] npm error A complete log of this run can be found in: /home/rpi/.npm/_logs/2025-08-01T06_02_05_568Z-debug-0.log

```

```auto
2025-08-01T06:02:12.511Z rc=1

```

Removing NVM will solve this ?

Cheers,

T

---

<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:** [1 August 2025 07:09 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/8 "2025-08-01T07:09:33Z")

</div>

> [@Tany](#):
>
> Removing NVM will solve this ?

Yes it will

---

<div class="post-metadata">

**Author:** ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)\
**Post date:** [1 August 2025 07:25 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/9 "2025-08-01T07:25:56Z")

</div>

NVM removed.  
node.js removed, installed, clean up of cache  
exec of advised bash re-install NR  
updated pending AEDES  
NR stop/start →

```auto
Welcome to Node-RED

```

```auto
1 Aug 09:20:17 - [info] Node-RED version: v4.1.01 Aug 09:20:17 - [info] Node.js version: v20.19.4

```

looks like all fine.  
Thanks for the patience with a 70++ newbee.

---

<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:** [1 August 2025 07:32 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/10 "2025-08-01T07:32:47Z")

</div>

> [@Tany](#):
>
> Thanks for the patience with a 70++ newbee.

Never too old to be a newbee 😉

Happy to see you got this fixed up.

---

<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:** [1 August 2025 10:53 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/11 "2025-08-01T10:53:20Z")

</div>

Hope I can still be a Newbee when I’m 70 !

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [1 August 2025 11:00 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/12 "2025-08-01T11:00:42Z")

</div>

welcome to the club! 😀

---

<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:** [1 August 2025 11:05 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/13 "2025-08-01T11:05:03Z")

</div>

It's a bigger club than you think 😊

---

<div class="post-metadata">

**Author:** ![Tany](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tany](https://discourse.nodered.org/u/Tany)\
**Post date:** [1 August 2025 11:35 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/14 "2025-08-01T11:35:58Z")

</div>

FYI : next step was major version 2.5.1 upgrade of Zigbee2MQTT. Previous attempt failed, but now also solved after re-install/clean-up node.js  
Z2M config required to adjust setting to AEDES-server, and serial adapter now set to zstack and removed baudrate.  
Z2M service required no adjust  
Node-Red : node-red-contrib-zigbee2mqtt no issue

"I'm completely operational, and all my circuits are functioning perfectly.", but need to be 70+ to know where this quote comes from.

Hal said : "I am completely operational, and all my circuits are I am completely operational, and all my circuits are **functioning perfectly**..  
**functioning perfectly**."

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [1 August 2025 13:33 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/15 "2025-08-01T13:33:39Z")

</div>

Another much bigger pain is when the version of your operating system is too old. Like yesterday when I upgraded a RPi4 and it did not succeed to update node.js to a later version than 18.

The os on that thing is really old, Raspbian Buster. Node 18 is the latest you can install on it. Upgrading the os to a later version is possible but requires a lot of effort, the amount depending on what you have installed on the thing and I have unfortunately a lot, besides being a bit lazy with such stuff. This also means I will sooner or later run into situations where upgrading of some nodes will not work due to their requirements

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [1 August 2025 14:19 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/16 "2025-08-01T14:19:39Z")

</div>

I’m in the same situation, as I still use a RPi3B+ with Buster. You can install NodeJS version 18, but don’t try 20 or later. Due to the Glibc issue. I can confirm, that NR v4.1.0 runs on a RPi1B+, but with Bookworm.

So I have to update my Pi 3B to a newer version, sooner or later.

---

<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:** [1 August 2025 15:57 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/17 "2025-08-01T15:57:35Z")

</div>

Node red 4.x will run on Buster with nodejs 18

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [1 August 2025 16:59 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/18 "2025-08-01T16:59:12Z")

</div>

> [@Tany](#):
>
> Z2M config required to adjust setting to AEDES-server, and serial adapter now set to zstack and removed baudrate.

Do yourself a favour, install mosquitto. It is, yet another hurdle on the way. However, as an MQTT broker it is an excellent one.

---

<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:** [1 August 2025 18:07 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/19 "2025-08-01T18:07:36Z")

</div>

In most cases you can “manually” upgrade the OS level without issue - it just takes a long time… - you can do a full upgrade to latest patches on the level you are at currently - then manually edit the /etc/apt/sources.list and /etc/apt/sources.list.d/\* files to point to the next level up OS - then sudo apt install and full upgrade that… - then repeat until you are on the latest level…

Normally there is also a `do-release-upgrade`command installed that will do the same thing for you.

But as I said it can take a while - like 2-3 hours…

---

<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:** [1 August 2025 19:47 UTC](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395/20 "2025-08-01T19:47:34Z")

</div>

Now I feel young at “just” 65! 😃

[Next page](https://discourse.nodered.org/t/upgrade-to-v4-1-0/98395.md?page=2)
