2

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
srivat1
  • 111
  • 3
  • 11

2 Answers2

0

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • just to clarify, without above all changes it is working fine in my other system with same user ,Is the issue related to need of any root access or problem of git? i do not have git-hub account for this project – srivat1 Mar 08 '18 at 05:54
  • @srivat1 yes, you did not mention anything about root in your question, but that would be enough to not have access to the same settings as your user account. – VonC Mar 08 '18 at 05:56
  • `git ls-command git: 'ls-command' is not a git command. See 'git --help'.` – Jonathan May 25 '18 at 19:46
  • 1
    @JonathanLeaders Yes, `git ls-remote`, sorry. I have fixed the answer. – VonC May 25 '18 at 19:47
0

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

Jonathan
  • 6,741
  • 7
  • 52
  • 69