Bower install slow when running from teamcity

I have a number of client side packages managed by bower. When we deploy our application (through teamcity) we do a bower install to get the latest version of each package and then copy this to our server.

When I run this from my local machine bower install takes 10-20s. When I run it as a build step in teamcity (note command line build step with custom script containing “bower install”) it takes 4 minutes. If I remote desktop onto that machine and run bower install from the command line it takes 10-20s.

Has anyone got any thoughts what’s going on?


If I look at ProcExp on the server it seems ssh.exe is hanging for a long time before finishing executing.

Some extra details:

  • TeamCity Enterprise 7.1.4 (build 24331); Agent Version: 24331
  • Windows Server 2008 R2
  • Agent running as admin account
  • Git v1.8
  • Build step is custom script; node node_modules/bower/bin/bower install
  • Tried with both teamcity.git.use.native.ssh=false & teamcity.git.use.native.ssh=true
  • Using private keys in /.ssh

I found this issue on Teamcity’s Youtrack which seems to be the same/similar issue but has since been closed. Not certain if its related or not. I’ve also raised a new issue but no response

Bower install command not working on windows

This is my output from running bower: PS F:/tmp/ember3/demo2> bower install ember bower cloning git:// bower cached git:// bower fetching ember

FileNotFoundException when running NUnit tests from TeamCity

I am using the built in TeamCity NUnit runner to run tests stored in .DLL files. My .DLLs are referencing other DLLs which are present in the same folder. When running these, i am getting a FileNotFou

r.js is missing when I install requirejs through bower, why?

r.js is missing when I install requirejs through bower, why? I installed bower globally and then I install requirejs bower install requirejs it installs all the stuff and no error happens: bower clon

Update bower.json when running `bower update`

Is it possible to update your bower.json file to the latest version after running bower update? Seems silly to have to go in & do this manually.

bower install missing files

I am running bower install insider my dir. It creates a bower_components folder, but some .js files are missing.. GET /customapp/customapp.controller.js 304 7ms GET /customapp/testmodal.controller.js

bower install fails with exit code #8

bower install (as bower register) fails when trying to install a component from our GIT repository via http. I have configured git to use http:// instead of git:// but the command still fails when exe

Stop bower from asking for statistics when installing

I’m trying to set up an automated package build for an app which uses bower. When it gets to bower install in the postinstall, bower prompts: [?] May bower anonymously report usage statistics to impr

Recursive bower install

I’ve got a project which depends on another project which and both use Bower. I’d like bower install to also run on that component when I run it on the parent project. So far I haven’t found anything

Bower install – failed with ETIMEDOUT

When I run bower install, I get the following error: Request to failed with ETIMEDOUT, retrying in 1.8s But when I run the same URL in the address bar of C

Running Karma from TeamCity

Does anyone know how you would run the following command within TeamCity? (the command is normally ran in a Node.js command window)…Karma start karma.conf.js. I have successfully installed Nodejs


Take a look at team city’s detailed log. You will see whether it’s git or bower that are getting bad performance or network throughput. If it’s git, you may want to see if you can add the depth option to be one and specify the branch so it doesn’t copy your history if it’s large.

We discovered that Git for windows installs an old version of SSH, if you upgrade to the latest version of SSH it will fix the slowness