gremo gremo - 4 years ago 443
Git Question

How to install a bower package using a private git server (SSH)?

EDIT: this guy do exactly the same with success, can't figure out why it's not working for me.

I've just installed

and setup permissions/SSH authentication with public/private key (Centos 6.5). I'm able to pull/push without problems using i.e.:

git clone

Username is
, code placed in
, repository created with
git --init --shared boilerplate-template

How can I require
with Bower in another project?

I've tried with the following bower.json file without luck:

"name": "my/newproject",
"dependencies": {
"boilerplate-template": "git://"

ECMDERR: Failed to execute "git ls-remote --tags --heads
git://, exit code
unable to lookup (port project)...

Sadly it fails because
is not the port but the path. I've also tried with
instead of

ssh:// not found.

Answer Source

Ok, found the solution here: Using Bower as the Package Management tool for Internal, Private Libraries. Simply remove git:// or ssh:// and add .git suffix:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download