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

A post was split to a new topic: Update NodeRED to 4.0.5 from 3.0.2?