Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

bower install - github.com connection timed out #141

Closed

Description

@pmichna
pmichna@p:~/angular-phonecat$ npm install

> [email protected] postinstall /home/pmichna/angular-phonecat
> bower install

bower angular-mocks#~1.2.15 not-cached git://github.com/angular/bower-angular-mocks.git#~1.2.15
bower angular-mocks#~1.2.15    resolve git://github.com/angular/bower-angular-mocks.git#~1.2.15
bower bootstrap#~3.1.1      not-cached git://github.com/twbs/bootstrap.git#~3.1.1
bower bootstrap#~3.1.1         resolve git://github.com/twbs/bootstrap.git#~3.1.1
bower angular#1.2.x         not-cached git://github.com/angular/bower-angular.git#1.2.x
bower angular#1.2.x            resolve git://github.com/angular/bower-angular.git#1.2.x
bower jquery#1.10.2         not-cached git://github.com/jquery/jquery.git#1.10.2
bower jquery#1.10.2            resolve git://github.com/jquery/jquery.git#1.10.2
bower angular-resource#~1.2.15       not-cached git://github.com/angular/bower-angular-resource.git#~1.2.15
bower angular-resource#~1.2.15          resolve git://github.com/angular/bower-angular-resource.git#~1.2.15
bower angular-route#~1.2.15          not-cached git://github.com/angular/bower-angular-route.git#~1.2.15
bower angular-route#~1.2.15             resolve git://github.com/angular/bower-angular-route.git#~1.2.15
bower angular-animate#~1.2.15        not-cached git://github.com/angular/bower-angular-animate.git#~1.2.15
bower angular-animate#~1.2.15           resolve git://github.com/angular/bower-angular-animate.git#~1.2.15
bower angular-route#~1.2.15             ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-route.git", exit code of #128

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection timed out

npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-19-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/pmichna/angular-phonecat
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pmichna/angular-phonecat/npm-debug.log
npm ERR! not ok code 0

Sometimes it times out on angular-animate, sometimes on bootstrap, sometimes on something else. What's wrong?

Activity

  1. petebacondarwin commented on Apr 14, 2014

    @petebacondarwin
    Contributor

    Sounds like you have a flaky connection to github...

  2. pmichna commented on Apr 14, 2014

    @pmichna
    Author

    I'm new to AngularJS, node.js and npm. Any way to do manually what needs to be done?

  3. petebacondarwin commented on Apr 15, 2014

    @petebacondarwin
    Contributor

    Hi @pmichna.

    Angular phonecat uses bower to retrieve its dependencies including AngularJS, from github.

    The problem is that from where you are the connection to the github servers is not being very reliable. Github is a separate service, not controlled by AngularJS or bower.

    It is hard to know what the problem is. It could be a transient issue that will go away if you try again later. It may be that you have some kind of firewall that is intermittently blocking connections.

  4. pmichna commented on Apr 15, 2014

    @pmichna
    Author

    Ok, I contacted IT support in my company. However, that's strange. I can normally ping github.com, I can do git clone from GitHub repositories. I can't understand what could be wrong then.

  5. pmichna commented on Apr 15, 2014

    @pmichna
    Author

    The problem was that bower tried to retrieve packages through git:// protocol, which seems to be blocked at my machine.

    git config --global url."https://".insteadOf git:// solved the problem.

  6. petebacondarwin commented on Apr 15, 2014

    @petebacondarwin
    Contributor

    Excellent. Glad you worked it out. Well done.

  7. karthigb commented on May 13, 2014

    @karthigb

    Thanks @pmichna I was having the same problem 👍

  8. maximeberthelot commented on May 22, 2014

    @maximeberthelot

    Thanks ! It resolve now !

  9. gregory commented on Jun 17, 2014

    @gregory

    awesome! Indeed this issue happened to me cause i was behind firewall restriction on protocols :)

  10. deepaksinghvi commented on Jun 17, 2014

    @deepaksinghvi

    Thanks, its very helpful.

  11. zckrs commented on Jun 19, 2014

    @zckrs

    👍

  12. alexandremaeda commented on Jun 27, 2014

    @alexandremaeda

    Thanks, solved for me!

  13. DerGitHubUser commented on Jun 30, 2014

    @DerGitHubUser

    git config --global url."https://".insteadOf git:// worked here too. Seeing I'm new to Node, Git and the rest , this was a great find.

    Thank you.

  14. yogesh-raj commented on Jul 23, 2014

    @yogesh-raj

    I found this issue ... how to solve

    bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github
    .com/agrublev/angularLocalStorage.git", exit code of #128

    Additional error details:
    fatal: unable to access 'https:// https:/// github.com/agrublev/angularLocalSt
    orage.git/': Could not resolve host: <https

    npm ERR! [email protected] postinstall: bower install
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] postinstall script.
    npm ERR! This is most likely a problem with the trader-desktop package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! bower install
    npm ERR! You can get their info via:
    npm ERR! npm owner ls trader-desktop
    npm ERR! There is likely additional logging output above.
    npm ERR! System Windows_NT 6.1.7601
    npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
    s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install"
    npm ERR! cwd D:\GitProject\trader-desktop-angular
    npm ERR! node -v v0.10.29
    npm ERR! npm -v 1.4.14
    npm ERR! code ELIFECYCLE
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR! D:\GitProject\trader-desktop-angular\npm-debug.log
    npm ERR! not ok code 0
    |
    npm ERR! [email protected] prestart: npm install
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] prestart script.
    npm ERR! This is most likely a problem with the trader-desktop package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! npm install
    npm ERR! You can get their info via:
    npm ERR! npm owner ls trader-desktop
    npm ERR! There is likely additional logging output above.
    npm ERR! System Windows_NT 6.1.7601
    npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
    s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "start"
    npm ERR! cwd D:\GitProject\trader-desktop-angular
    npm ERR! node -v v0.10.29
    npm ERR! npm -v 1.4.14
    npm ERR! code ELIFECYCLE
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR! D:\GitProject\trader-desktop-angular\npm-debug.log
    npm ERR! not ok code 0

  15. 32 remaining items

  16. borislopezaraoz commented on Nov 11, 2015

    @borislopezaraoz

    Thanks! great tip

  17. AtulKamra commented on Nov 25, 2015

    @AtulKamra

    I am getting issue while running a job from Jenkins for connecting to Git for building code. any idea what can be done to fix this?

    Error -

    Started by user anonymous
    Building in workspace /var/jenkins_home/jobs/iOS_Build/workspace

    git rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
    git config remote.origin.url GIT Repository URL # timeout=10
    Fetching upstream changes from GIT Repository URL > git --version # timeout=10
    using .gitcredentials to set credentials
    git config --local credential.username USER_NAME# timeout=10
    git config --local credential.helper store --file=/tmp/git5514383632996462831.credentials # timeout=10
    git -c core.askpass=true fetch --tags --progress GIT Repository URL +refs/heads/:refs/remotes/origin/

    git config --local --remove-section credential # timeout=10
    ERROR: Error fetching remote repo 'origin'
    hudson.plugins.git.GitException: Failed to fetch from GIT Repository URL
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
    at hudson.scm.SCM.checkout(SCM.java:485)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
    at hudson.model.Run.execute(Run.java:1741)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:408)
    Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress GIT Repository URL +refs/heads/:refs/remotes/origin/" returned status code 128:
    stdout:
    stderr: fatal: unable to access 'GIT Repository URL ': Failed to connect to stash.com port 443: Connection timed out

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313)
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)
    ... 11 more
    

    ERROR: null

  18. paulkr commented on Nov 27, 2015

    @paulkr

    git config --global url."https://".insteadOf git:// worked for me! Thanks!

  19. guilherme22 commented on Dec 19, 2015

    @guilherme22

    git config --global url."https://".insteadOf git:// worked for me too ! Thanks !

  20. swapy commented on Dec 28, 2015

    @swapy

    Yes this works perfect! Thanks.

  21. git-msp commented on Jan 26, 2016

    @git-msp

    I did git config --global url."https://".insteadOf git://
    but still issue

    fatal: unable to access 'https://github.com/git-msp/CubeGeneratorWeb.git/': Failed to connect to 192.135.82.70 port 1080: Timed out

  22. neakves commented on Feb 17, 2016

    @neakves

    Tanks Brow
    git config --global url."https://".insteadOf git://
    It worked !

  23. phppa commented on Feb 19, 2016

    @phppa

    Excelente, resolveu o problema !

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

  24. PStoner3 commented on May 3, 2016

    @PStoner3

    I am still experiencing this issue.
    Here is my global .gitconfig
    [filter "lfs"]
    required = true
    clean = git-lfs clean %f
    smudge = git-lfs smudge %f
    [user]
    name = Paul Stoner
    email = [email protected]
    [core]
    gitProxy = "ssh" for "kernal.org"
    gitProxy=default-proxy
    [http]
    proxy = http://:
    [https]
    proxy = http://:
    [url "https://"]
    insteadOf = git://

    As you can see, I've set my proxy, set the url.https. Nothing seems to work.
    I am running
    Node V5.0.0
    npm v3.8.9
    bower v1.7.9
    git v2.8.1.windows.1

    I simply cannot seem to get bower working

  25. ChrisGrigg commented on May 5, 2016

    @ChrisGrigg

    @PStoner3 I was in the same predicament as you. To solve it I just removed "http.proxy", "https.proxy" and "url..insteadOf" from the global and local .gitconfig files and it worked. Perhaps I had conflicts with other settings on my system and simplifying things helped.

  26. saumyaraj commented on May 7, 2016

    @saumyaraj

    @pmichna Thanks. Appreciate!!

  27. brandonmceachern commented on Jun 2, 2016

    @brandonmceachern

    I'm working behind a firewall and change the config url.. Also, I keep trying bower install. The downloads would time out but each try added more to the cache so eventually I had all the dependencies.

  28. savanr commented on Oct 6, 2016

    @savanr

    For me reverse engineering works 😜

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

    If you have manually run above commands then you should remove those entries first from ~/.gitconfig file. So for that open that file

    nano ~/.gitconfig

    Replace these lines

    [url "https://"]
        insteadOf = git:// 
    
    

    with this

    [url "git://"]
        insteadOf = https://
    

    Save and restart your terminal.

  29. cdll commented on Mar 13, 2017

    @cdll

    git config --global url."https://".insteadOf git:// did not solve my problem but git config --global url."git://".insteadOf https:// that @savanr said help me a lot~
    hope everyone see here and so much thank to @savanr 😊

  30. skyrw commented on Aug 22, 2018

    @skyrw

    bower d3#3.5.6 ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/mbostock-bower/d3-bower.git", exit code of #128 error: while accessing https://github.com/mbostock-bower/d3-bower.git/info/refs fatal: HTTP request failed
    Additional error details:
    error: while accessing https://github.com/mbostock-bower/d3-bower.git/info/refs
    fatal: HTTP request failed

    I met the above error message,and it use 'https',What should I do,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions