node.js – Installing Node-RED Debian package – nodered:armhf : Depends: npm:armhf (>= 7) but it is not installable

I wish to install Node-RED from Debian packages.
I don’t wish to follow this guide Running on Raspberry Pi

We provide a script to install Node.js, npm and Node-RED onto a
Raspberry Pi. The script can also be used to upgrade an existing
install when a new release is available.

and

Node-RED has also been packaged for the Raspberry Pi OS repositories
and appears in their list of ‘Recommended Software’. This allows it to
be installed using apt-get install nodered and includes the Raspberry
Pi OS-packaged version of Node.js, but does not include npm.

Note: at this time the default node.js included with RaspiOS Bullseye
is still v12. This means that the latest Node-RED version that can be
installed is the 2.x branch. While using these packages is convenient
at first, we strongly recommend using the install script above
instead.

I still wish to go the Debian route.

apt-cache search Node-RED
(..)
nodered - Node-RED - low-code programming for event-driven applications

apt install nodered
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nodered:armhf : Depends: npm:armhf (>= 7) but it is not installable
                 Depends: python3:armhf (>= 3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

cat /etc/apt/sources.list

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bookworm main contrib non-free
#deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free
#deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free

cat /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ bookworm main

I get this error

The following packages have unmet dependencies:
 nodered:armhf : Depends: npm:armhf (>= 7) but it is not installable
                 Depends: python3:armhf (>= 3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

How-To resolve?

Read more here: Source link