0

So I have been having some issues with git, npm and brew. It seems to be related to the enterprise proxy I used before. I am not using this computer anymore behind that enterprise proxy but it seems I haven't cleared all the proxy settings. I have cleared all the instances I can find in "Network settings" but there seems to be more. Anyone got a good idea for how to find where my proxy is kicking in and how to remove it? An example of how it looks in the Terminal

brew install yarn

==> Downloading https://homebrew.bintray.com/bottles/node-7.7.2.el_capitan.bottle.tar.gz

curl: (7) Failed to connect to proxy.enterprise.com port 123: Operation timed out

yarism
  • 445
  • 1
  • 6
  • 16

1 Answers1

0

To delete git proxy settings, try doing:

git config --global --unset core.gitproxy
git config --global --unset http.proxy

You can also see all proxies defined by doing:

git config --global -l 

And then you'll know which ones to delete.

npm has it's own proxy settings which you can delete:

npm config delete proxy
npm config delete https-proxy

For brew, make sure http_proxy isn't set in your envirionment variables.

That is, something that looks like this:

http_proxy=http://<proxyhost>:<proxyport> brew install $FORMULA

or

ALL_PROXY
Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • Thanks! The git ones didn't work for some reason but when I tried git config --global http.proxy "" it worked. However the brew one still isn't working. – yarism Mar 13 '17 at 03:39