{"action":"created","issue":{"url":"https://api.github.com/repos/bower/bower/issues/2257","repository_url":"https://api.github.com/repos/bower/bower","labels_url":"https://api.github.com/repos/bower/bower/issues/2257/labels{/name}","comments_url":"https://api.github.com/repos/bower/bower/issues/2257/comments","events_url":"https://api.github.com/repos/bower/bower/issues/2257/events","html_url":"https://github.com/bower/bower/issues/2257","id":148780861,"number":2257,"title":"bower install on CI server with a private package hangs forever with no error.","user":{"login":"Mattykins","id":1888352,"avatar_url":"https://avatars.githubusercontent.com/u/1888352?v=3","gravatar_id":"","url":"https://api.github.com/users/Mattykins","html_url":"https://github.com/Mattykins","followers_url":"https://api.github.com/users/Mattykins/followers","following_url":"https://api.github.com/users/Mattykins/following{/other_user}","gists_url":"https://api.github.com/users/Mattykins/gists{/gist_id}","starred_url":"https://api.github.com/users/Mattykins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mattykins/subscriptions","organizations_url":"https://api.github.com/users/Mattykins/orgs","repos_url":"https://api.github.com/users/Mattykins/repos","events_url":"https://api.github.com/users/Mattykins/events{/privacy}","received_events_url":"https://api.github.com/users/Mattykins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T22:07:55Z","updated_at":"2016-05-23T00:18:58Z","closed_at":null,"body":"I am currently trying to stitch together a CI workflow using TeamCity, and a private bower registry for our website projects. The registry we are using is https://www.npmjs.com/package/private-bower\r\n\r\nWe are using bitbucket for our git provider.\r\n\r\nI've registered one package with the private registry, who's `bower.json` file looks like this:\r\n```\r\n{\r\n  \"private\": true,\r\n  \"name\": \"myPrivatePackage\",\r\n  \"main\": [\r\n    \"dist/scripts/app.js\",\r\n    \"dist/styles/app.css\"\r\n  ],\r\n  \"dependencies\": {\r\n    \"angular-ui-router\": \"~0.2.15\",\r\n    \"angular-bootstrap\": \"~0.13.0\",\r\n    \"angular\": \"~1.4.0\",\r\n    \"bootstrap-sass\": \"bootstrap-sass-official#~3.3.6\",\r\n    \"lodash\": \"~4.8.2\"\r\n  },\r\n  \"resolutions\": {\r\n    \"jquery\": \"~2.1.4\",\r\n    \"angular\": \"~1.4.0\"\r\n  }\r\n}\r\n```\r\n\r\nI have a separate project trying to consume this bower package. It's bower.json and .bowerrc look like this:\r\n\r\nbower.json\r\n```\r\n{\r\n  \"name\": \"myApp\",\r\n  \"version\": \"0.0.0\",\r\n  \"dependencies\": {\r\n    \"angular-animate\": \"~1.4.0\",\r\n    \"angular-cookies\": \"~1.4.0\",\r\n    \"angular-ladda\": \"~0.2.2\",\r\n    \"angular-local-storage\": \"~0.1.5\",\r\n    \"angular-touch\": \"~1.4.0\",\r\n    \"angular-sanitize\": \"~1.4.0\",\r\n    \"jquery\": \"~2.1.4\",\r\n    \"angular-ui-router\": \"~0.2.15\",\r\n    \"bootstrap-sass-official\": \"~3.3.4\",\r\n    \"angular-bootstrap\": \"~0.13.0\",\r\n    \"animate.css\": \"~3.3.0\",\r\n    \"angular\": \"~1.4.0\",\r\n    \"myPrivatePackage\": \"myPrivatePackage#~0.0.1\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"angular-mocks\": \"~1.4.0\"\r\n  },\r\n  \"resolutions\": {\r\n    \"jquery\": \"~2.1.4\",\r\n    \"angular\": \"~1.4.0\"\r\n  }\r\n}\r\n```\r\n.bowerrc\r\n```\r\n{\r\n  \"directory\": \"bower_components\",\r\n  \"registry\": \"http://bower.mycompany.com\"\r\n}\r\n```\r\n\r\nLocally, all of this stuff works fine. I can run `bower install` no problem, it installs my private package and everything is good. However, in TeamCity during CI it hangs silently at this point:\r\n\r\n`bower spin.js#~2.0.2                       resolved https://github.com/fgnass/spin.js.git#2.0.2`\r\n\r\nThe actual package it hangs on varies. I've seen it hang at `angular-animate` and `jquery` as well. So it's really weird that it hangs on these packages and *not* my custom private package. If anything, I would think that it would hang on that package.\r\n\r\nNow, if I remove my private package as a dependency, the build runs fine. \r\n\r\nI've put a couple of things in place to make the CI build even possible. I have a global `git config.url ssh://.insteadOf \"https://\"` so that my CI server can communicate with my private git repository over ssh and it doesn't get prompted for credentials.\r\n\r\nThe actual bower install command I'm using is as follows: `bower install --config.interactive=false --verbose --force`\r\n\r\nI had read someone's similar problem who blamed node and bower versioning so I've tried a multitude of different bower/npm/node versions. My current versions are:\r\n\r\nnode: `v0.10.44`\r\nnpm: `3.8.7`\r\nbower `1.7.2`\r\n\r\n(I can easily change versions if this seems to be the root of the issue, but like I said I've tried a bunch)\r\n\r\nSorry about the wall of text, just trying to provide as much info as possible.\r\n\r\nThanks!\r\n\r\nEDIT: I Should also mention that my CI server is running Windows Server 2012 R2"},"comment":{"url":"https://api.github.com/repos/bower/bower/issues/comments/220865553","html_url":"https://github.com/bower/bower/issues/2257#issuecomment-220865553","issue_url":"https://api.github.com/repos/bower/bower/issues/2257","id":220865553,"user":{"login":"sheerun","id":292365,"avatar_url":"https://avatars.githubusercontent.com/u/292365?v=3","gravatar_id":"","url":"https://api.github.com/users/sheerun","html_url":"https://github.com/sheerun","followers_url":"https://api.github.com/users/sheerun/followers","following_url":"https://api.github.com/users/sheerun/following{/other_user}","gists_url":"https://api.github.com/users/sheerun/gists{/gist_id}","starred_url":"https://api.github.com/users/sheerun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheerun/subscriptions","organizations_url":"https://api.github.com/users/sheerun/orgs","repos_url":"https://api.github.com/users/sheerun/repos","events_url":"https://api.github.com/users/sheerun/events{/privacy}","received_events_url":"https://api.github.com/users/sheerun/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T00:18:58Z","updated_at":"2016-05-23T00:18:58Z","body":"what is the git version?"}}
{"actor":{"display_login":"sheerun"}}