Git and Node Proxy Settings

Today i came to replicating the MediaWiki install i wrote about previously on a server in work. This mean’t dealing with proxies and i noticed some strange behavior.

Git

Using these commandlines, git was able to get out of our corporate firewall.

git config –global http.proxy http://proxy.company.com:8080

git config –global https.proxy http://proxy.company.com:8080

Node

Initially i set https-proxy to the https address for our proxy but it didnt work. I found out that for some reason changing this to http proxy address worked.

npm config set proxy http://proxy.company.com:8080

npm config set https-proxy http://proxy.company.com:8080

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s