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

后端 未结 24 1481
长情又很酷
长情又很酷 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:23

    Instead to run this command:

     git ls-remote --tags --heads git://github.com/twbs/bootstrap.git
    

    you should run this command:

     git ls-remote --tags --heads git@github.com:twbs/bootstrap.git
    

    or

     git ls-remote --tags --heads https://github.com/twbs/bootstrap.git
    

    or you can run git ls-remote --tags --heads git://github.com/twbs/bootstrap.git but you need to make git always use https in this way:

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

    Reference: https://github.com/bower/bower/issues/50

提交回复
热议问题