Dashboard not installing correctly

Please excuse my ignorance as I am very new to the Node red and Raspberry pi's in general.

I can ping google.com so I know that I am connected to the internet.

The error the I am getting is as follows:

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/node-red/node-red-dashboard.git
npm ERR! 
npm ERR! ssh: connect to host github.com port 22: No route to host
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2022-03-08T17_32_12_390Z-debug.log

Thanks in advance!

Is that from the PI where node-red is running?

Also, what command are you running? How are you installing dashboard?

Yes it is from the same PI.

The command I am using to install is:

npm i node-red-dashboard

How did you install node-red?

Edit: Also, can you ping github.com and does the install still fail if you try again?

I installed Node-red with

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

I cannot ping github.com and I cannot figure out why. Installing the dashboard still fails even after trying again.

You have a network problem then. Exactly what do you see when you run ping github.com

Edit: Also, can you ping 140.82.121.4?

When I ping github.com I get this:

From 192.168.123.10 (192.168.123.10) icmp_seq=1 Destination Host Unreachable

When I ping 142.82.121.4 I get basically the same thing:

From 192.168.123.10 icmp_seq=1 Destination Host Unreachable
From 192.168.123.10 icmp_seq=2 Destination Host Unreachable
From 192.168.123.10 icmp_seq=3 Destination Host Unreachable
From 192.168.123.10 icmp_seq=4 Destination Host Unreachable

So it isn't a DNS lookup issue. Something is stopping you getting to github.

Do you have any idea what it could be?

That isn't the address I posted - it was 140.82.121.4

However, assuming that is a mistype in your post rather than when you ran the command it is most likely a firewall somewhere. Can you access github from another machine on the same network? You can go to github.com in a browser. How about on your mobile network if you have one.

That was just a typo on my end sorry about that. And I can access github from another computer the same network so I don't think its a firewall issue.

Almost certainly it is the firewall on the node red machine.

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