[Atom] Cannot install package behind a proxy on Win7

来源:互联网 发布:硕鼠 youtube mac 编辑:程序博客网 时间:2024/06/04 23:05

I’m using Atom behind a proxy on Win7. Every time I try to install new packages, it fails. So I googled around and found these two articles.
1. Setup Atom behind proxy
2. Unable to install packages behind corporate proxy

In short, what you need to do is:
Step 1.
If you’re using a proxy, you can configure apm (Atom Package Manager) to use it by setting the https-proxy config in your ~/.atom/.apmrc file:

https-proxy = https://prxoyip:0

If you are behind a firewall and seeing SSL errors when installing packages, you can disable strict SSL by putting the following in your ~/.atom/.apmrc file:

strict-ssl = false

You can run apm config get https-proxy to verify it has been set correctly, and running apm config list lists all custom config settings.

Step 2
Windows temporary:
set ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist

Windows permanently:
setx ATOM_NODE_URL http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist /M

You can remove it at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Linux
export ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist

0 0
原创粉丝点击