bower behind a proxy

后端 未结 4 1520
既然无缘
既然无缘 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 12:03

    Edit your .bowerrc file and add the wanted proxy configuration:

    {
        "proxy":"http://:",
        "https-proxy":"http://:"
    }
    

    If working behind an authenticated proxy, user and password should be included like this:

    {
        "proxy":"http://:@:",
        "https-proxy":"http://:@:"
    }
    

    Usually, the .bowerrc is next to the bower.json. And if there is no .bowerrc file near the bower.json file, you can create one by yourself.

提交回复
热议问题