Atom 编辑器设置代理的方法

You can configure Atom (OSX) to use a HTTP proxy as follows:

  1. Add proxy info to APM:

    apm config set proxy http://localhost:9999
    apm config set http-proxy http://localhost:9999
    # 如果代理使用SSL, 但证书并不是 CA 颁发的情况下添加下面这句
    apm config set strict-ssl false
    
  2. Run HTTP_PROXY="http://127.0.0.1:9999" HTTPS_PROXY="http://127.0.0.1:9999" atom --proxy-server="http://127.0.0.1:9999"

  3. You can now update Atom & packages/themes from within Atom.

(sidenote: git clones still won't work and require proxy configuration in $HOME/.gitconfig or $HOME/.ssh/config.)

你可能感兴趣的:(Atom 编辑器设置代理的方法)