bower behind a proxy

后端 未结 4 1527
既然无缘
既然无缘 2020-12-07 11:01

bower install behind a proxy fails in timeout with the following settings (some set are useless...) :

git config --global http.proxy fr-proxy.ex         


        
4条回答
  •  天涯浪人
    2020-12-07 11:47

    My script (using git bash on Windows) for setting proxy was executed by a different user from the one I was using for bower. The environment variables were not taken into account.

    So the following setting is sufficient, as specified in other answers:

    export http_proxy=http://fr-proxy.example.com:3128
    export https_proxy=http://fr-proxy.example.com:3128
    

提交回复
热议问题