npm install failed because of git connection issue?

If after running of command “npm install” you have an error similar to:

npm ERR! git clone git://github.com/xxxxx fatal: unable to connect to github.com

it is possible that you have an issue with “git” protocol.

Try to change the settings of git to force it to use “https” instead of “git”. To do this, run the following command in git bash:

git config --local url."https://".insteadOf git://

After that you can try to run “npm install” again.