# Install Node-Red

**URL:** <https://discourse.nodered.org/t/install-node-red/90270>\
**Category:** General\
**Created:** [19 August 2024 12:58 UTC](https://discourse.nodered.org/t/install-node-red/90270 "2024-08-19T12:58:40Z")\
**Posts on this page:** 20\
**Page:** 4

<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:** [24 August 2024 12:48 UTC](https://discourse.nodered.org/t/install-node-red/90270/61 "2024-08-24T12:48:38Z")

</div>

> [@maxmueller50](#):
>
> it didn't matter if I mistakenly chose the wrong RPi type, the right OS:

I don't understand what that means.

> [@maxmueller50](#):
>
> It is now very pointless to investigate this further, as the situation is no longer comprehensible

I don't think it was ever comprehensible to me. But there would be a point in investigating further, so that the next time someone reports the error we will know what the cause is, But unless you can tell us exactly what you did then it is not possible.

---

<div class="post-metadata">

**Author:** ![maxmueller50](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxmueller50/32/2621_2.png) [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Post date:** [24 August 2024 14:10 UTC](https://discourse.nodered.org/t/install-node-red/90270/62 "2024-08-24T14:10:11Z")

</div>

yes, I agree with you, but I can't say why it happened that way

the real reason was this message that I received when using this script in "Getting startet.... Running on Raspberry Pi"

_ **bash: /def/fd/63: No such file or directory** _

- there are no further informations to handle this
- why it worked perfectly with today's new installation, I can't explain, why...!  
(sorry, my english is not perfect!)

---

<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:** [24 August 2024 14:43 UTC](https://discourse.nodered.org/t/install-node-red/90270/63 "2024-08-24T14:43:02Z")

</div>

> [@maxmueller50](#):
>
> the real reason was this message that I received when using this script

The question that is unanswered is what did you do different the first time? What was the difference between the first and second installation?

---

<div class="post-metadata">

**Author:** ![maxmueller50](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxmueller50/32/2621_2.png) [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Post date:** [24 August 2024 14:53 UTC](https://discourse.nodered.org/t/install-node-red/90270/64 "2024-08-24T14:53:07Z")

</div>

> [@Colin](#):
>
> The question that is unanswered is what did you do different the first time? What was the difference between the first and second installation?

the only difference was that I did the first installation directly on the RPi keyboard  
today's installation via SSH from Mac, of course with the script via copy/paste  
(I can rule out any typos)

---

<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:** [24 August 2024 15:07 UTC](https://discourse.nodered.org/t/install-node-red/90270/65 "2024-08-24T15:07:58Z")

</div>

Was it exactly the same OS image?  
In either case did you do anything after plugging in the freshly burned SD before running the script.

---

<div class="post-metadata">

**Author:** ![maxmueller50](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxmueller50/32/2621_2.png) [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Post date:** [24 August 2024 15:16 UTC](https://discourse.nodered.org/t/install-node-red/90270/66 "2024-08-24T15:16:09Z")

</div>

In the first case, before burning adjustments such as hostname, user, password, SSH  
today in the new attempt only the system (RPi 2) and OS (Legacy 32-bit light), otherwise noting  
In the first case, various adjustments in raspi-config and then the installation directly on the RPi  
Today's installation, as already mentioned, via SSH and Mac

---

<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:** [24 August 2024 15:27 UTC](https://discourse.nodered.org/t/install-node-red/90270/67 "2024-08-24T15:27:37Z")

</div>

What OS was it the first time?

---

<div class="post-metadata">

**Author:** ![maxmueller50](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxmueller50/32/2621_2.png) [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Post date:** [24 August 2024 15:41 UTC](https://discourse.nodered.org/t/install-node-red/90270/68 "2024-08-24T15:41:40Z")

</div>

OS 32-bit Debian Bookworm (Recommended)

---

<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:** [24 August 2024 16:02 UTC](https://discourse.nodered.org/t/install-node-red/90270/69 "2024-08-24T16:02:12Z")

</div>

Right at the start you said you had manually installed nodejs before running the script.

---

<div class="post-metadata">

**Author:** ![maxmueller50](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maxmueller50/32/2621_2.png) [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Post date:** [25 August 2024 09:28 UTC](https://discourse.nodered.org/t/install-node-red/90270/70 "2024-08-25T09:28:57Z")

</div>

yes, after I got the mentioned error message when running this bash script (bash: /def/fd/63: No such file or directory) in the opinion that npm and nodejs must be installed first (trying, trying, trying...)

 ![install_NR](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/0790176c14dd18fc5217d2971ad72936814ffc60.png)

---

<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:** [25 August 2024 10:21 UTC](https://discourse.nodered.org/t/install-node-red/90270/71 "2024-08-25T10:21:24Z")

</div>

As I said before, that does not tell you to install npm.

It would be helpful if you could try again with the 32 bit bookworm install and see if you can replicate the problem. I haven't got the hardware to try it myself at the moment.

---

<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:** [25 August 2024 15:57 UTC](https://discourse.nodered.org/t/install-node-red/90270/72 "2024-08-25T15:57:52Z")

</div>

I suspect this is more to do with some accidental operator error rather than anything Node-RED related - eg see [command line - "/dev/fd/63 No such file or directory" - Ask Ubuntu](https://askubuntu.com/questions/1086617/dev-fd-63-no-such-file-or-directory) and other searches for /dev/fd/63 ... so I'm not sure it's worth losing sleep over.

---

<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:** [25 August 2024 16:12 UTC](https://discourse.nodered.org/t/install-node-red/90270/73 "2024-08-25T16:12:29Z")

</div>

> [@dceejay](#):
>
> I suspect this is more to do with some accidental operator error

So do I, that is why it would be good if the OP could try again to see if it is reproducible.

---

<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 August 2024 19:36 UTC](https://discourse.nodered.org/t/install-node-red/90270/74 "2024-08-25T19:36:41Z")

</div>

I managed to bring together a Pi B+ and a wifi dongle so it's even older than the OP's Pi 2:

Burned RPiOS 32 bit (bookworm, not legacy) and ran the script with no command line options. It seems to be working fine:

```auto
pi@TestOS:~ $ grep PRETTY_NAME /etc/os-release | cut -d \" -f 2
Raspbian GNU/Linux 12 (bookworm)
pi@TestOS:~ $ cat /sys/firmware/devicetree/base/model
Raspberry Pi Model B Plus Rev 1.2
pi@TestOS:~ $ npm -v
10.8.2
pi@TestOS:~ $ node-red
25 Aug 20:25:16 - [info]

Welcome to Node-RED
===================

25 Aug 20:25:16 - [info] Node-RED version: v4.0.2
25 Aug 20:25:16 - [info] Node.js version: v20.17.0
25 Aug 20:25:16 - [info] Linux 6.6.31+rpt-rpi-v6 arm LE
25 Aug 20:25:22 - [info] Loading palette nodes
25 Aug 20:25:42 - [info] Settings file : /home/pi/.node-red/settings.js
25 Aug 20:25:42 - [info] Context store : 'default' [module=memory]
25 Aug 20:25:42 - [info] User directory : /home/pi/.node-red
25 Aug 20:25:42 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 Aug 20:25:42 - [info] Flows file : /home/pi/.node-red/flows.json
25 Aug 20:25:42 - [info] Creating new flow file
25 Aug 20:25:42 - [warn] Using unencrypted credentials
25 Aug 20:25:42 - [info] Server now running at http://127.0.0.1:1880/
25 Aug 20:25:42 - [info] Starting flows
25 Aug 20:25:42 - [info] Started flows

```

---

<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:** [25 August 2024 20:44 UTC](https://discourse.nodered.org/t/install-node-red/90270/75 "2024-08-25T20:44:59Z")

</div>

That's good to know. So that is Bookworm, nodejs 20 and old Pi hardware installing and running fine with the script. Excellent.

---

<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:** [25 August 2024 20:49 UTC](https://discourse.nodered.org/t/install-node-red/90270/76 "2024-08-25T20:49:11Z")

</div>

I can confirm.  
See: [Pi Zero W fail to install Node-Red - #5 by Colin](https://discourse.nodered.org/t/pi-zero-w-fail-to-install-node-red/88950/5)

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [25 August 2024 22:20 UTC](https://discourse.nodered.org/t/install-node-red/90270/77 "2024-08-25T22:20:49Z")

</div>

`ERROR message /dev/fd/63`

This error means that curl failed to download the script and there was no input to pass to bash from stdout.

There is no error message because curl is passed the `-s` flag to be silent.

The usual cause for this error will be a network problem on the device, possibly a DNS lookup failure. The other cause can be trying to run the command with `sudo`, this will NOT work as it runs bash as root, but runs curl as the local user and can't pipe the stdout output to the process running as a different user.

The correct debug for this situation in future is to run just the curl command without the `-s` e.g.

```auto
curl -L https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered

```

if this outputs the script then add `-o nr-install.sh` to the end to save it to a file locally and run with

```auto
bash ./nr-install.sh <any args>

```

---

<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:** [26 August 2024 08:33 UTC](https://discourse.nodered.org/t/install-node-red/90270/78 "2024-08-26T08:33:56Z")

</div>

> [@hardillb](#):
>
> This error means that curl failed to download the script and there was no input to pass to bash from stdout.

I am not seeing that. When I run the script on Ubuntu with the network disconnected it just returns immediately with no output.

In fact possibly a good plan when there are reported problems is to run the full command, but without the `-s` so that there is at least confirmation that it has downloaded.  
`bash <(curl -L https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered )`

---

<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:** [26 August 2024 09:47 UTC](https://discourse.nodered.org/t/install-node-red/90270/79 "2024-08-26T09:47:38Z")

</div>

> [@Colin](#):
>
> When I run the script on Ubuntu with the network disconnected it just returns immediately with no output.

Same on a Pi with a typo in "[githubusercontent.com](http://githubusercontent.com)". I guess that's equivalent to  
`bash <(false)`  
The Bash exit code $? in this case is 0

But with a typo in the name of the script I get  
`/dev/fd/63: line 1: 404:: command not found`

Which is similar but not identical to the error reported by the OP, presumably because he did things slightly differently.

The 404 is of course the HTML status code "404 Not Found"

@dceejay do you think it worthwhile to tweek the script to first of all print "Node-RED Installation" and the documentation to say "If you do not see 'Node-RED Installation' you may have a problem with your internet connection, please check and try again"?

---

<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:** [26 August 2024 14:31 UTC](https://discourse.nodered.org/t/install-node-red/90270/80 "2024-08-26T14:31:02Z")

</div>

Could do I suppose - not sure how wide a problem it is to be honest. Pull Requests always welcome.

[Previous page](https://discourse.nodered.org/t/install-node-red/90270.md?page=3)

[Next page](https://discourse.nodered.org/t/install-node-red/90270.md?page=5)
