You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
bower install - github.com connection timed out #141
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.
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.
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.
Reacted by Joseph ROUFF, Chris Townsend, Pooja Saxena, Robert Sandberg, Josh Phillips, Harish Boke, Jan Hadenfeldt, Ankit Singhaniya, David, abheet123 and 65 more
Reacted by Kushal Arora, Joe Withey, Jerwin, wangfengming, srichetan7, Jorge Matricali, Brandon Davis, kripal kashyav, Costi Muraru, Marco Korb and 5 more
Reacted by Albert Parlys, John E. Lazos, Rover van Nispen tot Pannerden, srichetan7, Nemanja Milosevic, Matt Mc, Brais Antela, tejas, Matias Simone, Sina Maleki and 2 more
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.
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
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
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
@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.
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.
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 😊
Activity
petebacondarwin commentedon Apr 14, 2014
Sounds like you have a flaky connection to github...
pmichna commentedon Apr 14, 2014
I'm new to AngularJS, node.js and npm. Any way to do manually what needs to be done?
petebacondarwin commentedon Apr 15, 2014
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.
pmichna commentedon Apr 15, 2014
Ok, I contacted IT support in my company. However, that's strange. I can normally ping github.com, I can do
git clonefrom GitHub repositories. I can't understand what could be wrong then.pmichna commentedon Apr 15, 2014
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.petebacondarwin commentedon Apr 15, 2014
Excellent. Glad you worked it out. Well done.
karthigb commentedon May 13, 2014
Thanks @pmichna I was having the same problem 👍
maximeberthelot commentedon May 22, 2014
Thanks ! It resolve now !
gregory commentedon Jun 17, 2014
awesome! Indeed this issue happened to me cause i was behind firewall restriction on protocols :)
deepaksinghvi commentedon Jun 17, 2014
Thanks, its very helpful.
zckrs commentedon Jun 19, 2014
👍
alexandremaeda commentedon Jun 27, 2014
Thanks, solved for me!
DerGitHubUser commentedon Jun 30, 2014
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.
yogesh-raj commentedon Jul 23, 2014
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 installnpm 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 installnpm 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
32 remaining items
borislopezaraoz commentedon Nov 11, 2015
Thanks! great tip
AtulKamra commentedon Nov 25, 2015
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
ERROR: null
paulkr commentedon Nov 27, 2015
git config --global url."https://".insteadOf git://worked for me! Thanks!guilherme22 commentedon Dec 19, 2015
git config --global url."https://".insteadOf git:// worked for me too ! Thanks !
swapy commentedon Dec 28, 2015
Yes this works perfect! Thanks.
git-msp commentedon Jan 26, 2016
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
neakves commentedon Feb 17, 2016
Tanks Brow
git config --global url."https://".insteadOf git://
It worked !
phppa commentedon Feb 19, 2016
Excelente, resolveu o problema !
git config --global url."https://".insteadOf git://
PStoner3 commentedon May 3, 2016
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
ChrisGrigg commentedon May 5, 2016
@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.
saumyaraj commentedon May 7, 2016
@pmichna Thanks. Appreciate!!
brandonmceachern commentedon Jun 2, 2016
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.
savanr commentedon Oct 6, 2016
For me reverse engineering works 😜
If you have manually run above commands then you should remove those entries first from ~/.gitconfig file. So for that open that file
Replace these lines
with this
Save and restart your terminal.
cdll commentedon Mar 13, 2017
git config --global url."https://".insteadOf git://did not solve my problem butgit config --global url."git://".insteadOf https://that @savanr said help me a lot~hope everyone see here and so much thank to @savanr 😊
skyrw commentedon Aug 22, 2018
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