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

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

</div>

To clarify this, was the problem that you had installed a version of the OS that was not compatible with your hardware?

---

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

</div>

Don't think it can be that - it would just refuse to boot.

But we have not established a cause and IMHO my experiment with separating the download from the execution does not deserve to be marked as the solution.

The actual solution is to invest in a Pi Zero 2 W 😀

---

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

</div>

it's like that, with wrong OS, the RPi refuse to start (hanging by the 4-color-screen)

probably it was the OS - recommended to the -Legacy version

but I think it was the other spelling "bash ./nrscript...." without "\<"

but now Node Red works as well and I'm happy  
thank you all again!!!

---

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

</div>

It would be useful to see if the latest node-red works. It is easy to go back if it doesn't. To try it, run the script with nothing on the end, it will keep the current version of nodejs and install the latest node red.

---

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

</div>

OK - I ran the script again wit nothing on the end  
during installation it was displayed:  
-- node18 or --node20  
it take 18.20.4 and npm 10.7.0  
NR version is 3.1.9

NR now works correctly, because previously no messages were displayed in the debug column

was this the meaning?

---

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

</div>

Can you post the install log please?

---

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

</div>

please find the node-red-log in this txt file  
[node-red-log.txt](https://discourse.nodered.org/uploads/short-url/pHnC6Kcv7erUA1Aoyohd04frtMe.txt) (6 KB)

---

<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 07:58 UTC](https://discourse.nodered.org/t/install-node-red/90270/48 "2024-08-21T07:58:45Z")

</div>

Are you sure that you did not have the `--nodered-version` parameter on the end of the script? I expected the command to upgrade node red to 4.0.2.

---

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

</div>

no, I just left out the last part ( --node18)  
now I have specified the version in the script 4.0.2

here the results:

 ![NR_install_402](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e1a24849f98ee371831baf89d809481a1837af2f.png)  
[node-red-log.txt](https://discourse.nodered.org/uploads/short-url/dUodvDvx4yjwKGhi3rrjama4omS.txt) (7.9 KB)

I see this Warning! what I can do?  
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

---

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

</div>

and a next WARNING:

 ![Bildschirmfoto 2024-08-21 um 11.13.41](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5e5c49fcd1b9e73debffc0a53baa923afbeec348.png)

---

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

</div>

> [@maxmueller50](#):
>
> I see this Warning! what I can do?  
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Just ignore that one, we all get it several times per install.  
Really it's target audience is the writer of the install script and I think he does use due caution.

> Warn Encrypted credentials not found

Some nodes require secret details such as an email password, an API key etc.  
They are stored in a file flows\_cred.json rather than the normal flows file.  
During the install you get the chance to enter an encryption key, but without it the file remains unencrypted.  
It will work either encrypted or unencrypted.  
If Node-red is running on a computer only you have access to, it does not matter. but if it's used by multiple people or (god forbid) you intend to access it over the internet you should encrypt the file, which you can do by means of settings.js.

And finally

> Warning do not expose Node-red to the internet ...

No really, don't do it!  
But if you must, there are several discussions in the forum about how, and of course the security section of the online documentation.

---

<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/install-node-red/90270/52 "2024-08-21T10:44:15Z")

</div>

> [@maxmueller50](#):
>
> no, I just left out the last part ( --node18)  
> now I have specified the version in the script 4.0.2

There was no need to specify the version, it would have installed the latest. That is what I meant when I said to run the script with nothing on the end.

---

<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:** [21 August 2024 11:39 UTC](https://discourse.nodered.org/t/install-node-red/90270/53 "2024-08-21T11:39:01Z")

</div>

thank you for this informations

I use NR with NodeRedRemont

this should be safe, I think

---

<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:** [21 August 2024 11:43 UTC](https://discourse.nodered.org/t/install-node-red/90270/54 "2024-08-21T11:43:48Z")

</div>

I was trying this script without any specifications but the script doesn't work, first, when I specified with -version"4.0.2"

---

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

</div>

> [@maxmueller50](#):
>
> NodeRedRemont

what is that? A google search comes up with no hits....do you mean node-red-contrib-remote?

If so remember in the future to give the full name of a node.

---

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

</div>

Yes! node-red-contrib- remote  
Sorry about!

---

<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 16:51 UTC](https://discourse.nodered.org/t/install-node-red/90270/57 "2024-08-21T16:51:11Z")

</div>

> [@maxmueller50](#):
>
> I was trying this script without any specifications but the script doesn't work,

There was something else wrong, the script does work on old Pis

---

<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:** [21 August 2024 18:39 UTC](https://discourse.nodered.org/t/install-node-red/90270/58 "2024-08-21T18:39:58Z")

</div>

It would be interesting to know why

---

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

</div>

Indeed, but unless you can repeat the fault and tell us _exactly_ what you did to make it fail then we cannot investigate it.

---

<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 11:25 UTC](https://discourse.nodered.org/t/install-node-red/90270/60 "2024-08-24T11:25:56Z")

</div>

it didn't matter if I mistakenly chose the wrong RPi type, the right OS:

- in NodeRed/Dokumentation/GettingStartet/Running on Raspi Pi, with the script:

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

```

I get this Error: _ **bash: /def/fd/63: No such file or directory** _

everything else was a result of numerous attempts to establish the right situation

The decisive factor was probably that the OS with user and password for "pi" users was already predefined when the OS image file was created, as well as operating using "sudo"

so the script:

````curl
ls -l nrscript```
are running, also the script:
```bash <./nrscript --nodered-version="3.1.9" --node18```

it didn't matter if I mistakenly chose the wrong RPi type, the right OS:

now I had created a new image (RPi 2B / OS 32.bit Leagacy Ligth) then used the mentioned link
in NodeRed/Dokumentation/GettingStartet/Running on Raspi Pi, with the script:

````

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))

the installation is immediate and flawless

 ![nr_install_2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/693fb15a1cd507e1ae844175956dae34b7145814.png)

It is now very pointless to investigate this further, as the situation is no longer comprehensible

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

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