Skip to content

Instantly share code, notes, and snippets.

@1c7
Last active July 8, 2018 07:58
Show Gist options
  • Save 1c7/d1e2a93dc5f0410eb800a008e217c1fe to your computer and use it in GitHub Desktop.
Save 1c7/d1e2a93dc5f0410eb800a008e217c1fe to your computer and use it in GitHub Desktop.
Command line proxy
```bash
set http_proxy=http://127.0.0.1:1080;export https_proxy=http://127.0.0.1:1080;
```
@1c7
Copy link
Author

1c7 commented May 8, 2018

on macOS it's export
on Winodws it's set

@1c7
Copy link
Author

1c7 commented May 8, 2018

for macOS export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;

@1c7
Copy link
Author

1c7 commented May 8, 2018

2018-5-8 this work for me
I was trying to build a Electron v2.0.0 app that I wrote.
and npm run dist is slow
image
after run this, now download would though proxy.
it's a lot faster now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment