# Can't start node-red 4 after re-install on pi zero w

**URL:** <https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322>\
**Category:** General\
**Created:** [6 July 2024 15:14 UTC](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322 "2024-07-06T15:14:07Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![HeneryH](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/heneryh/32/48986_2.png) [@HeneryH](https://discourse.nodered.org/u/HeneryH)\
**Post date:** [8 July 2024 17:50 UTC](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322/21 "2024-07-08T17:50:40Z")

</div>

Isn't the illegal instruction error related to the wrong node package due to the deprecated pi-z architecture? I posted above about the experimental versions for the older arch.

My other post talks about subsequent errors. Not sure if related or not.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 July 2024 18:29 UTC](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322/22 "2024-07-08T18:29:06Z")

</div>

No - it's related to the bcrypt package we updated not having a build for armv6 - so that is the specific package that breaks - so the fix is to not use that version of that package (as we have a failover to a fully js version).

The install script we have uses the unofficial builds for those architectures it needs to - so that is handled already.

(of course there may be other issues and other nodes with issues - but a clean install now works on Pi0, Pi1 etc)

---

<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:** [9 July 2024 12:56 UTC](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322/23 "2024-07-09T12:56:51Z")

</div>

After 5 attempts at the revised install script I finally got NR 4.0 and node.js 20.15.0 on my Pi 1a running RPiOS Legacy Lite. I have zram installed too.

Good grief running NR is a painful experience, even using a browser on a PC!

This Pi has a knackered old Edimax USB wifi dongle.  
The times that the install failed were down to network failures on various downloads, eg

```auto
npm error network request to https://registry.npmjs.org/worker-timers-broker/-/worker-timers-broker-6.1.8.tgz failed, reason: Client network socket disconnected before secure TLS connection was established

```

But the script did not exit on the error, it trudged on to the end (~30 minutes).  
Can it be made to test the success of each npm install stage and exit immediately @dceejay?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 July 2024 13:10 UTC](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322/24 "2024-07-09T13:10:33Z")

</div>

probably not - as that is all part of the one command to npm install node-red so we are down to what npm will do at that point. After that it optionally install any pi specific nodes etc - so the bulk of the install is all in the one command.

But yes - it failed for me several times due to bad/slow networking also... once I moved on to copper it worked fine (albeit still slow) 🙂

---

<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:** [7 October 2024 13:11 UTC](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322/25 "2024-10-07T13:11:01Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/cant-start-node-red-4-after-re-install-on-pi-zero-w/89322.md?page=1)
