Unable to install the node red on raspberry pi

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
curl: (28) Failed to connect to raw.githubusercontent.com port 443: Connection timed out

Hello @Jagadeesh_aditya, welcome to the forum.

It looks like you are using the right installation command

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?

sudo apt update gives the following
Get:1 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
Err:1 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

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

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

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

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