# Pi Zero W fail to install Node-Red

**URL:** <https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950>\
**Category:** General\
**Created:** [25 June 2024 21:14 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950 "2024-06-25T21:14:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcborges](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Post date:** [25 June 2024 21:14 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/1 "2024-06-25T21:14:42Z")

</div>

Hi, I am trying to install Node-Red to my Raspberry Pi Zero W in what would be a no events simple instalation but that somehow is not working.  
I did this same install a couple of weeks ago with no incidents.  
So I prepared the memory card with a headless PI os using the PI imager.  
Updated and upgraded.  
Initiated the installation using the the script at [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)  
And after the installation finishes, before it ask configuration questions I get the following message:  
/dev/fd/63: line 814: 32530 Illegal instruction $SUDOU /usr/bin/node-red admin init  
chown: cannot access '/home/pi/.node-red/settings.js': No such file or directory

pi@PiZero:~ $ ls /home/pi/.node-red/  
node\_modules package.json

Assistance welcome.  
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:** [25 June 2024 22:28 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/2 "2024-06-25T22:28:50Z")

</div>

I believe there may be a problem getting Node-red v4 to install on these old Pies.  
At least I have not got it working yet.

Can you try to install it again using

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

```

---

<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:** [9 July 2024 22:29 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/3 "2024-07-09T22:29:05Z")

</div>

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

---

<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:** [21 August 2024 10:44 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/4 "2024-08-21T10:44:59Z")

</div>



---

<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:** [21 August 2024 10:47 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/5 "2024-08-21T10:47:22Z")

</div>

I have re-opened this to note that the script has been updated and will now install the latest node red and a valid version of nodejs on old Pis.

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [21 August 2024 14:23 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/6 "2024-08-21T14:23:52Z")

</div>

It will work, no problems.

I run Node-RED 4.0.2 on my very first Raspberry Pi, RPi 1B.  
NodeJS: v 20.15.0  
Npm: v 10.7.0  
Raspberry Pi OS: Bookworm

Used the default install script.

---

<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:** [21 August 2024 15:46 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/7 "2024-08-21T15:46:27Z")

</div>

Excellent, I wasn't sure if there was a problem with nodejs 20.

---

<div class="post-metadata">

**Author:** ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Post date:** [21 August 2024 21:35 UTC](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/8 "2024-08-21T21:35:07Z")

</div>

I had some trouble on that Raspberry Pi 1B, when it was running Raspberry Pi OS Buster, due to a wrong version of GLIBC. That caused, that I could not install NodeJS Version 20 and had to install Version 18.

Now, after an OS upgrade to Bookworm AND the modified install script, everything installed fine.
