Node.js 22 support for NodeRED?

Hi there, we are using the RPI4 CM for a project with nodeRED. Node.js is advancing quickly, now version 22 would be the current version to use for most nodeRED packages, and by the end of the year it will already be 24.

How can I keep my nodeRED fleet up to date with the latest version? The problem is, that I have a nodeRED block that is going to be used both on the Victron Cerbo GX environment, which is always up to date. In order to use the same versions also with Balena, I need more recent node versions.

How can I get nodeRED on balena work for node 22? Using FROM balenalib/raspberrypi4-64-debian-node:latest-build as build gives me node v19.6 at most, are there any plans for a more recent image or did I miss something while creating my release?

Because the nodeRED app is unfortunately archived, we made our own fork, if anyone is in the need: GitHub - Verein-Kleinwohnformen/energiemonitor-balena-nodered: Node-RED Container for Balena

Thanks for your inputs!

1 Like

Hey @michaburger first of all welcome to the balena community.

Let me check internally what we can do to have the base images running with a later nodeJS image. Thanks for the headsup and thanks for sharing the repository!

Let’s stay connected

Hello Marc,

Could you check what is necessary to create a base image with a more recent version of node? Is this something that could be done by anyone or does it need balena engineers to do it?

Best,
Micha

Hello @michaburger apologizes that i forgot about you once we published officially that we deprecated the balena base images. You can read more here :backhand_index_pointing_right: Aligning with the Ecosystem: Migrating away from Balenalib Base Images

You can read this to learn how to pick a base image → Base images | balena

In the meantime i will update the node-Red project at balena! Thanks!

Thanks @mpous, that explains some things.

Just to be sure about it - is balena still supporting a pre-packaged version of NodeRed as block or app, where would I find this? Or do I just follow the base images instructions and pull node-red from docker?

Hi @michaburger the balena Node-RED block or app is archived, so my recommendation is to fork it and adapt it a bit.

Change the base image from the Dockerfile template that you need (e.g. Dockerfile template for the Raspberry Pi 4)

and here

Let me know if that works for you!