Git Repository bower install (terminal prompts disabled)

1.2k Views Asked by At

I try to do bower install for my project but it throws following error

ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/functino/jquery-ui-touch-punch.git", exit code of #128 fatal: could not read Username for 'https://github.com': terminal prompts disabled

I tried options suggested in below and from other sites but none work.

 https://stackoverflow.com/questions/32232655/go-get-results-in-terminal-prompts-disabled-error-for-github-private-repo
2

There are 2 best solutions below

4
VonC On

You can, as in here, replace your URLs with https://<yourGitHubUsername>@github.com/xxx/arepo.git

Make sure you have a credential helper in place (to cache the password)

git config credential.helper

Type the git ls-remote once (with the URL including your username), and enter your password if requested.

Then try bower install again.

0
Jonathan On

This was due to a registered bower package to a deleted git repo. I contacted the owner and it should have been resolved now per #107