Update NodeRed from 3.1.3 to 4.0 on a Raspberry Pi 4B using Debian version 11 (bullseye)

Hi,
here
https://nodered.org/docs/getting-started/local#upgrading-node-red
it is stated that there are two methods to update depending on the way Node-Red was installed:

  • using a pi script
  • using global npm packge.

How can if find out how Node-Red was installed (because I do not remember)?

Thank you and kind regards
Thomas

How do you start node-red?

What does the command which node-red show?

1 Like

You don't have to install Node-RED globally, that is just the "simple" way it is described in the docs. It is a node.js app and can be installed and managed just as any other node.js app/microservice.

1 Like

If you installed using the script, there will be a file or files /var/log/nodered-install.log

eg

ls -l /var/log/node*
-rw-r--r-- 1 root root 3640 Jun 20 19:58 /var/log/nodered-install.log
-rw-r--r-- 1 root root 1959 Jun 11 18:03 /var/log/nodered-install.log.1
-rw-r--r-- 1 root root  822 Feb 16  2024 /var/log/nodered-install.log.2.gz
5 Likes

Thanks all for your help and quick response!

which node-red shows
/usr/bin/node-red

ls -l /var/log/node* shows
-rw-r--r-- 1 root root 0 Jan 14 2024 /var/log/nodered-install.log
-rw-r--r-- 1 root root 1668 Jan 13 2024 /var/log/nodered-install.log.1
-rw-r--r-- 1 root root 2073 Jun 21 2023 /var/log/nodered-install.log.2.gz

@TotallyInformation
Thank you for that hint, but I have no idea about Linux or how to deal with a microservice. And because I don't want to ruin the installation on my rpi4B I'm asking these questions.
I now assume that I will use the script for the upgrade. But first I will make a backup...

Thx!

1 Like