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

**URL:** <https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013>\
**Category:** General\
**Created:** [28 February 2024 21:57 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013 "2024-02-28T21:57:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![HS10](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HS10](https://discourse.nodered.org/u/HS10)\
**Post date:** [28 February 2024 21:57 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/1 "2024-02-28T21:57:21Z")

</div>

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](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.

Thanks

Here is the log file:

[nodered-install.log](https://discourse.nodered.org/uploads/short-url/mHK074eRIGH2A5FBp2DGU2I2hI3.log) (4.2 KB)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [29 February 2024 00:57 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/2 "2024-02-29T00:57:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![HS10](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HS10](https://discourse.nodered.org/u/HS10)\
**Post date:** [29 February 2024 01:26 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/3 "2024-02-29T01:26:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![HS10](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HS10](https://discourse.nodered.org/u/HS10)\
**Post date:** [29 February 2024 02:31 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/4 "2024-02-29T02:31:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 February 2024 03:42 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/5 "2024-02-29T03:42:03Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 February 2024 09:11 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/7 "2024-02-29T09:11:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [29 February 2024 17:23 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/8 "2024-02-29T17:23:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 May 2024 17:23 UTC](https://discourse.nodered.org/t/raspberry-pi-5-bookworm-node-red-install-failure/86013/9 "2024-05-29T17:23:38Z")

</div>

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