How to configure NPM and VSCode behind a Proxy?

These days I was working in a place where “the proxy” was not my best friend, trying to install my packages using npm or install the VSCode extensions was impossible so I need to configure the proxy in both.

From the terminal:

npm config set proxy http: // yourproxyiporaddress: port npm config set https-proxy http: // yourproxyiporaddress: port`

For VSCode extensions the “proxy” is also required:

Preferences> User Settings "http.proxy": "http: // yourproxyiporaddress: port" ` #proxy