# Unable to install the node red on raspberry pi

**URL:** <https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187>\
**Category:** General\
**Created:** [11 September 2023 07:07 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187 "2023-09-11T07:07:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagadeesh\_aditya](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jagadeesh\_aditya](https://discourse.nodered.org/u/Jagadeesh_aditya)\
**Post date:** [11 September 2023 07:07 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187/1 "2023-09-11T07:07:27Z")

</div>

Hi, the experts of Node-Red, I am an undergraduate teacher, very new to Node-Red. I am unable to install node red on my raspberry pi. Could some one please help me. What mistake i did. Plese find the error message here:  
curl [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)  
curl: (28) Failed to connect to [raw.githubusercontent.com](http://raw.githubusercontent.com) port 443: Connection timed out

---

<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:** [11 September 2023 07:23 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187/2 "2023-09-11T07:23:43Z")

</div>

Hello @Jagadeesh_aditya, welcome to the forum.

It looks like you are using the right installation command

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

```

If you try again after a short wait it might work.  
Otherwise, does your Raspberry Pi have access to the internet - does `sudo apt update && sudo apt -y full-upgrade` give any errors?

Are you trying to install over a university network?

---

<div class="post-metadata">

**Author:** ![Jagadeesh\_aditya](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jagadeesh\_aditya](https://discourse.nodered.org/u/Jagadeesh_aditya)\
**Post date:** [11 September 2023 07:32 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187/3 "2023-09-11T07:32:38Z")

</div>

sudo apt update gives the following  
Get:1 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro InRelease [12.1 kB]  
Err:1 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro InRelease  
The following signatures couldn't be verified because the public key is not available: NO\_PUBKEY 2F59B5F99B1BE0B4  
N: Updating from such a repository can't be done securely, and is therefore disabled by default.  
N: See apt-secure(8) manpage for repository creation and user configuration details.

and sudo apt -y full-upgrade also giving lot of errors.

I am using my mobile hotspot and accessing the raspberry pi desktop through VNC viewer

---

<div class="post-metadata">

**Author:** ![Jagadeesh\_aditya](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jagadeesh\_aditya](https://discourse.nodered.org/u/Jagadeesh_aditya)\
**Post date:** [11 September 2023 07:33 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187/4 "2023-09-11T07:33:15Z")

</div>

As i cannot insert more than 2 links, i am not posting the remaining errors

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 September 2023 08:47 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187/5 "2023-09-11T08:47:25Z")

</div>

> [@Jagadeesh\_aditya](#):
>
> I am using my mobile hotspot and accessing the raspberry pi desktop through VNC viewer

Why? You would have much less troubles if you access it via SSH (far less computationally expensive than running VNC)

I dont think you ran the command @jbudd suggested. If you look at it, it has `--node18` on the end, but you are seeing errors for node 20.

Before moving on to the below, I suggest you try the bash script once more, with the `--node18` as JBudd posted.

### Manual install:

lastly, that error is pretty well covered around the internet & most recommend you head to the nodejs repository where install instructions have improved somewhat lately: [GitHub - nodesource/distributions: NodeSource Node.js Binary Distributions](https://github.com/nodesource/distributions#installation-instructions)

> ### Installation Instructions
> 
> #### **Node.js**
> 
> > _If you have root access, you can omit the 'sudo' command as you already have full administrative privileges._
> 
> 1. Download and import the Nodesource GPG key
> 
> sudo apt-get update sudo apt-get install -y ca-certificates curl gnupg sudo mkdir -p /etc/apt/keyrings curl -fsSL [https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key](https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key) | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
> 
> 1. Create deb repository
> 
> NODE\_MAJOR=20 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] [https://deb.nodesource.com/node\_$NODE\_MAJOR.x](https://deb.nodesource.com/node_$NODE_MAJOR.x) nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
> 
> > _ **Optional** _: `NODE_MAJOR` can be changed depending on the version you need.
> > 
> > NODE\_MAJOR=16 NODE\_MAJOR=18 NODE\_MAJOR=20
> 
> 1. Run Update and Install
> 
> sudo apt-get update sudo apt-get install nodejs -y

---

<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:** [10 November 2023 08:48 UTC](https://discourse.nodered.org/t/unable-to-install-the-node-red-on-raspberry-pi/81187/6 "2023-11-10T08:48:02Z")

</div>

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