Proxy Settings for Bower, Activator and Nodejs on Windows

less than 1 minute read

1. Bower\

  • create a file .bowerrc in C:\Users\userId directory.\
  • content example\
    1
    2
    3
    4
    
    {
      "proxy":"http://user:pass@host:portId",
      "https-proxy":"http://user:pass@host:portId"
    }
    

2. Activator\

  • create a file c:\Users\userId\activator\activatorconfig.txt\
  • conent example\
    1
    2
    3
    4
    5
    6
    7
    8
    
    # This are the proxy settings we use for activator
    -Dhttp.proxyHost=proxy-host
    -Dhttp.proxyPort=port
    # Here we configure the hosts which should not go through the proxy.  You should include your private network, if applicable.
    -Dhttp.nonProxyHosts="localhost|127.0.0.1"
    # These are commented out, but if you need to use authentication for your proxy, please fill these out.
    -Dhttp.proxyUser=username
    -Dhttp.proxyPassword=pass
    

3. Nodejs\

  • create a file c:\Users\userId\npmrc\
  • context example\
    1
    
    proxy=http://userId:pass@host:portNumber