So upgrading to 5.0... (from 4.1.4 if memory serves)...
The recommended Node.js version for Node-RED 5.0 is Node.js 24. [1, 2]
While the project recommends Node.js 24, here are the detailed system requirements to keep in mind:
Node.js Compatibility
- Recommended: Node.js 24 (LTS). This is the version that the official Node-RED Docker images are built upon.
- Absolute Minimum: Node.js 22.9.0. Node-RED 5.0 will actively refuse to start on any older versions. [1, 2, 3]
However... when I ran the install/upgrade script...
Running Node-RED install for user nodered at /home/nodered on debian
This can take 20-30 minutes on the slower Pi versions - please wait.
Stop Node-RED ![]()
Remove old version of Node-RED ![]()
Node option not specified : --node20, --node22 or --node24
Leave existing Node.js : v20.20.1 Npm 10.8.2
Clean npm cache -
Install Node-RED core
Move global nodes to local
Npm rebuild existing nodes
Install extra Pi nodes
Add shortcut commands
Update systemd script
Any errors will be logged to /var/log/nodered-install.log
Clearly the install/upgrade script does or did not enforce --node22, what is the deal?
Of course this results...
$ sudo node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.7:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as root systemd service.
Started nodered.service - Node-RED graphical event wiring tool.
nodered.service: Referenced but unset environment variable evaluates to an empty string: NODE_RED_OPTIONS
Unsupported version of Node.js: v20.20.1
Node-RED requires Node.js v22.9 or later
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
Of course also... I could use --node22 but that is not the default? For 5.0 Upgrade?