Git / Bower Errors: Exit Code # 128 & Failed connect

后端 未结 24 1480
长情又很酷
长情又很酷 2020-11-30 21:42

I am using Bower to install several libraries. For demonstration purposes here, I am installing bootstrap. Regardless of the package, I receive the following errors:

24条回答
  •  情话喂你
    2020-11-30 22:20

    Am adding my answer here as this is one of the closest questions that matched my situation. Was trying to install select2 rather than bootstrap, but the outcome was the same.

    bower install select2 reported that git was unable to locate the directory. Used the

    git config --global url."https://".insteadOf git://

    config fix, but that resulted in a (paraphrased) error

    I can't use https

    My issue was resolved unsatisfactorily, as it involves magic.

    I was attempting to run this in a command shell (cmd.exe, windows). I ran the same command and ran it in powershell and it worked. ಠ_ಠ

    tl;dr: combination of https:// and powershell worked for me

提交回复
热议问题