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

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

    Are you behind a firewall?

    Git doesn't pick up the proxy configuration when it's called, so set environment variables explicitly, e.g.:

    export HTTP_PROXY=http://username:password@proxyserver:port/
    export HTTPS_PROXY=http://username:password@proxyserver:port/
    

    If your corporate proxy doesn't need authentication just omit the username:password@ bit in the URLs.

    It worked for me!

提交回复
热议问题