1

While walking through the angular-phonecat tutorial, I came across the following error immediately after running the npm install command:

enter image description here

I looked in the log file, too, but it more or less repeats the same error message shown in the console. What am I missing?

Renato Gama
  • 16,431
  • 12
  • 58
  • 92
BinaryCat
  • 1,220
  • 2
  • 17
  • 32
  • 1
    it looks like a network connection problem. would you please run command `git ls-remote --tags --heads git://github.com/angular/bower-angular-route.git`? it should list all tags – shawnzhu Sep 08 '14 at 17:57
  • @shawnzhu - When I ran the command, I got `fatal: unable to connect to github.com: github.com[0: 192.30.252.129]: errno=No error` Is this error caused by Github's end (unlikely, I'd think) or mine? – BinaryCat Sep 08 '14 at 18:00
  • 1
    Might be a routing problem between your location and github. I have no problem reaching github. Can you browse http://github.com ? – Timothy Strimple Sep 08 '14 at 18:10
  • @TimothyStrimple - Yes, I have no problem browsing github.com – BinaryCat Sep 08 '14 at 18:21
  • Have you tried the solution that Timothy and I gave? – Caspar Harmer Sep 08 '14 at 18:36
  • Problem solved! Now I'm torn between whose answer to accept. Both answers are equally valid but Tim came to my rescue a bit faster, so... – BinaryCat Sep 08 '14 at 18:46
  • You could always upvote... – Caspar Harmer Sep 08 '14 at 18:53

2 Answers2

4

Try making git use an http connection rather than a git one like so:

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

Sometimes the git protocol is blocked, but the https one won't be.

A similar issue is referenced here

Caspar Harmer
  • 8,097
  • 2
  • 42
  • 39
4

My guess is that you're behind some network proxy or firewall that restricts the ports you can access. In this case, you can tell git to use https:// instead of git:// for cloning. Answer is based off of this question.

git config --global url.https://github.com/.insteadOf git://github.com/

Community
  • 1
  • 1
Timothy Strimple
  • 22,920
  • 6
  • 69
  • 76