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