# 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:** 1

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

</div>

Hi  
I'm trying to install Node-Red on a RPi 2 B V1.1 / OS 32.bit Debian Bookworm

nodejs is v22.6.0  
npm is 10.8.2

by install nodered - I get the message:

- some packages could not be installed
- ... request an impossible situation or using the unstable distribution ...
- the following information may help ==\> empty
- the following package have unmet dependencies ==\> nodered. npm (\>=7)
- E: unable to correct problems, held brocken packages

when executing:  
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))

then I get the ERROR message /dev/fd/63 no such file or directory

when executing:  
sudo apt install build-essential git curl

- build-essential, already newest version (12.9)
- git, already the newest version (1:2.39.2-1.1)
- curl, already the newest version (7.88.1....)

I don't know what to do anymore (I had already installed Node Red on 3 devices without any problems)

thanks for any advices

---

<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:** [19 August 2024 13:11 UTC](https://discourse.nodered.org/t/install-node-red/90270/2 "2024-08-19T13:11:22Z")

</div>

Why do you have nodejs v22? Did you install that seperately?

---

<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:** [19 August 2024 13:14 UTC](https://discourse.nodered.org/t/install-node-red/90270/3 "2024-08-19T13:14:59Z")

</div>

Do these commands show any errors?

```auto
sudo apt update
sudo apt full-upgrade

```

Don't do the full-upgrade command if the update command shows errors.

---

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

</div>

no update and upgrade was ok

---

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

</div>

yes I install nodejs separately, I followed the instructions on the NR-doc page installing n-r

---

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

</div>

The [docs for installing on a pi](https://nodered.org/docs/getting-started/raspberrypi) do not say to install nodejs separately. V22 is not yet supported ([Supported Node versions : Node-RED](https://nodered.org/docs/faq/node-versions)). I suggest uninstalling nodejs and then run the script again.

If you still get the error post the install log here (/var/log/nodered-install.log).

---

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

</div>

ok I understand

in the doc it is mentioned that npm must be present beforehand

so I was not sure, how to get npm

now I have removed nodejs v22

---

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

</div>

> [@maxmueller50](#):
>
> in the doc it is mentioned that npm must be present beforehand

Where does it say that?

---

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

</div>

As a test, I have just installed Node-red on a Pi 3B with a fresh RPiOS Lite 64 bit sd card.

**ALL** that I did on first logging in to the Pi was this, accepting all the default responses.

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

```

After that `npm -v && node-red --version` gave me

```auto
10.8.1
Node-RED v4.0.2
Node.js v20.16.0
Linux 6.6.31+rpt-rpi-v8 arm64 LE

```

And Node-red runs successfully.  
npm was not already installed as part of the OS, it was installed by the script.  
I did not have to install `build-essential`, `git` or `curl` (perhaps git is required if you enable projects)

Note that it would have made sense to run `sudo apt update` and `sudo apt -y full-upgrade` first, but not strictly necessary.

---

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

</div>

hi

thank you for your post

I have done exactly the same, only with RPiOS desktop 32 bit sd card

and with this script I get the error message "/def/fd/63 no such file or...

thats all, then afterward I was trying...

---

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

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/f/5f9865a1088affbdeaf0f7e8d5a3ee3a5a39b474.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:** [19 August 2024 16:43 UTC](https://discourse.nodered.org/t/install-node-red/90270/12 "2024-08-19T16:43:19Z")

</div>

That doesn't say that you have to install npm, it says that if you don't install build-essential, git and curl then when you run the script (which installs npm) then it will fail.

After you run the script what is in the install log?

---

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

</div>

> [@maxmueller50](#):
>
> I get the error message "/def/fd/63 no such file or...

Post the full message please.

---

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

</div>

> [@maxmueller50](#):
>
> I have done exactly the same, only with RPiOS desktop 32 bit sd card
> 
> and with this script I get the error message "/dev/fd/63 no such file or directory  
> [hopefully I corrected the error message]

There have been other reports of the same issue, but I thought only on older Pies with a 32 bit processor. The problem may be with the 32 bis OS rather than the hardware.

Can you try again with 64 bit RPiOS?

---

<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:** [19 August 2024 17:16 UTC](https://discourse.nodered.org/t/install-node-red/90270/15 "2024-08-19T17:16:41Z")

</div>

I have tried this twice now, it seems that the RPi does not support 64-bit (hanging by the first 4-colored screen / it's a older RPi 2 B V1.1)

---

<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:** [19 August 2024 17:28 UTC](https://discourse.nodered.org/t/install-node-red/90270/16 "2024-08-19T17:28:07Z")

</div>

Did you run the basic script or add anything on the end?

---

<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:** [19 August 2024 17:36 UTC](https://discourse.nodered.org/t/install-node-red/90270/17 "2024-08-19T17:36:31Z")

</div>

> [@maxmueller50](#):
>
> I have tried this twice now, it seems that the RPi does not support 64-bit (hanging by the first 4-colored screen / it's a older RPi 2 B V1.1)

Sorry, you are right. I thought you said RPi 3.

I think the best you can expect on a 32 bit Pi is Node-red 3.1.9, which you can install with:

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

```

But that is not a viable option long-term.  
If you don't mind running Node-red on RPiOS Lite (ie accessing it with a browser on a PC) then you might find a Pi Zero 2 W works well, otherwise get a Pi 4. (Other small computers may be better value than a Pi 4 or 5)

---

<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:** [19 August 2024 17:36 UTC](https://discourse.nodered.org/t/install-node-red/90270/18 "2024-08-19T17:36:42Z")

</div>

first of all the basic script only  
afterward with --help  
the same result every time

---

<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:** [19 August 2024 17:38 UTC](https://discourse.nodered.org/t/install-node-red/90270/19 "2024-08-19T17:38:02Z")

</div>

> [@maxmueller50](#):
>
> RPi 2 B V1.1

That does not support the 64-bit version. You can checkout versions that are supported here  
[https://www.raspberrypi.com/software/operating-systems/](https://www.raspberrypi.com/software/operating-systems/)

---

<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:** [19 August 2024 17:38 UTC](https://discourse.nodered.org/t/install-node-red/90270/20 "2024-08-19T17:38:58Z")

</div>

thank you, I will try them

it is not a RPi 3 / its a RPi 2 B

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