Request to httpsbower herokuapp com packages jquery failed with econnreset

Request to httpsbower herokuapp com packages jquery failed with econnreset

Request to https://bower.herokuapp.com/packages/jquery failed with ECONNRESET

If you are trying to install pakcages with bower using command line and getting error means your proxy is blocking access to the URL.

Solution: On your project root directory where you are trying to install bower package create file name: “.bowerrc” and add your proxy information as below and don’t forget to replace your proxy port number if you working on corporate proxy. Usually on corporate default port number for HTTP is 80 and for HTTPS is 443:

Note: Don’t forget to execute git config –global url.”https://”.insteadOf git:// when behind a corporate proxy which blocks git protocol if needed

  • Try option 1 (Most of time this works):
{
    "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
}
  • Try option 2:
{
    "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
}
  • Try option 3:
{
    "proxy":"http://proxy-server:80/",
    "https-proxy":"http://proxy-server:443",
    "strict-ssl": false
}
  • Try option 4:
{

    "proxy" : "http://localhost:80",
    "https-proxy" : "http://localhost:443",
    "strict-ssl": false

}

 

Leave a Reply

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