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

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

    This error is related to a bad configuration of your firewall. You will notice that bower trying to contact git via the git:// protocol and not http://. You have to open port 9418. Add this two lines in your iptables configuration :

    iptables -t filter -A INPUT -p tcp --dport 9418 -j ACCEPT
    iptables -t filter -A OUTPUT -p tcp --dport 9418 -j ACCEPT
    

    This should do the trick.

提交回复
热议问题