Set Proxy Bower

Set Proxy Bower

If you are working on corporate network where proxy has installed which requires authentication for any request go out to internet. To install bower packages you will have to set proxy bower before using it.

  • Create file name: “.bowerrc” inside your project root folder from where you are trying to install the package and add below configuration and see which one works for you:

Configuration 1:

{
    "directory": "library",
    "registry": "http://bower.herokuapp.com",
    "proxy":"http://userName:password@proxy-server:80/",
    "https-proxy":"http://userName:password@proxy-server:443",
    "strict-ssl": false
}

Configuration 2:

{
    "directory": "library",
    "registry": "http://bower.herokuapp.com",
    "proxy":"http://intranet%5CuserName:password@proxy-server:80/",
    "https-proxy":"http://intranet%5CuserName:password@proxy-server:443",
    "strict-ssl": false
}

Configuration 3: 

{
    "proxy":"http://proxy-server:80/",
    "https-proxy":"http://proxy-server:443",
    "strict-ssl": false
}

Configuration 4:  

{
 
    "proxy" : "http://localhost:80",
    "https-proxy" : "http://localhost:443",
    "strict-ssl": false
 
}
  • For more details please visit bower configuration page

Leave a Reply

Your email address will not be published. Required fields are marked *