Raspberry Pi 5 (Bookworm) - Node-Red Install Failure

Hi Folks

Getting back to my RPI project. Still can't get Node-Red to install on Raspberry PI 5 running bookworm.

Created a fresh SD-Card image, loaded Nodejs & NPM, then attempted

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

Failed to load properly, when I select Node-Red in the menu a box rapidly opens and closes.


Here is the log file:

nodered-install.log (4.2 KB)

  1. is the Pi attached to the internet? In your log I see
    npm ERR! code EHOSTUNREACH
    This generally means you are not able to connect to the remote server to dawn load NR

  2. Are you running Home Assistant or Docker?
    either of these could be the problem

Have the RPI connected directly to a hardware internet connection with adequate speed.

Mot running Home Assistant or Docker.

Created a new SD card with the RPI imager. Have nothing loaded except NodeJS and NPM.

Has anyone successful got Node-Red to running on a Raspberry PI 5 with bookworm? It would be great to replicate their load sequence and instructions to do so. Thanks

Can you try flashing your SD card again, do not install npm or node.js but specify the versions of Node-red and node.js:

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --nodered-version="3.1.5" --node18

From the log file
npm ERR! request to https://registry.npmjs.org/node-red failed, reason: connect EHOSTUNREACH 2606:4700::6810:123:443

It is trying to use IPV6 addresses. Assuming that you have not got an IPV6 internet connection then that is not going to work. I suggest first following @zenofmud's advice, it is possible that the version of npm you installed has a problem. Installing it via the script may fix it.

In fact probably just uninstalling nodejs and npm and then running the script should be enough rather than starting from scratch.

Just to say that I have Node-RED running on a Pi 5 with Bookworm and I just flashed the SD with the system and then ran the standard install Node-RED command (bash ... etc)

Note: no loading of NodeJS or NPM on their own

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.