How to install an Atom package on Windows 8 behind a proxy server?



I want to install the atom-ctags package in Atom on Windows 8. I struggled to specify our proxy server in the .apmrc file so I thought I would install it directly from the command line:

C:\Windows\system32>apm install atom-ctags
Installing atom-ctags to C:\Users<snip>.atom\packages failed
Request for package information failed: connect ETIMEDOUT

As you can see it failed. Am I doing this incorrectly?




See my reply to your post on the other topic:

Assuming your username is DavidA, this would mean that your home directory is C:\Users\DavidA and would mean that your Atom configuration directory is in C:\Users\DavidA\.atom. This would put the .apmrc file at C:\Users\DavidA\.atom\.apmrc. (@batjko or @mark_hahn please correct me if my understanding of Windows Atom use is incorrect.)

Also note that whether you install packages at the command line or through the Settings View, they’re both using apm under the covers. It makes no difference.

What Port Does Atom Package Installer Use?

Thanks for your reply. The following folder exists as you suggested:


but it does not contain a .apmrc file. Should I just create the file there?


Yes, go ahead and just create it.


Ok, I created the .apmrc file (not so easy on Windows because it doesn’t like not specifying a file name, but I got around it using ren from the command line to rename the file) and inserted:

https-proxy = http://172.xx.xx.1:3128
http-proxy = http://172.xx.xx.1:3128
strict-ssl = false

(with proper ip addresses - I inserted the x’s here intentionally).

Atom now reports:

npm WARN invalid config https-proxy=“�http://172.xx.xx.1:3128”

npm WARN invalid config Must be a full url with ‘http://’


Any idea why this is so please?

Proxy settings not fully respected in windows (still not working, please consider reopening)

It didn’t like the spaces.


works fine. Thanks for your help.


You’re welcome. I’m glad I could help :grinning:


hey ,I have a similar problem .it just like this:
Request for package information failed: tunneling socket could not be established, cause=connect ETIMEDOUT

I am live in China an there is a Firewall.
this is my .apmrc:
cache = ~/.atom/.apm

Is there any way to solve it ?please help me.


It sounds like it can’t connect to the proxy. Are you sure that the address you have given is correct? I’m not sure that port 0 is valid.


I have change it like this :
cache = ~/.atom/.apm
but it still doesn’t work well.
this is my apm:
C:\Users\Christopher>apm -v
apm 0.101.0
npm 1.4.4
node 0.10.32
python 2.7.7
git 1.9.4.msysgit.0
visual studio 12
Is there any similar problem?
and this is the problem output:
Installing “autocomplete-clang@0.2.0” failed.Hide output…

gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.10.32 | win32 | ia32
gyp http GET
gyp http 502
gyp WARN install got an error, rolling back install

Failed to install autocomplete-clang package

To my understanding, this part should work:


So long as those are the right values for your proxy server. I don’t know what the right values are for your proxy server and can’t speculate.


On Windows as soon as I opened C:\Users\<me>\.atom\ i saw the folder .apm which had the .apmrc file and I started editing that which eventually got replaced. Big mistake!

So if you have been doing the same mistake and cant get proxy settings to work as leedohm has mentioned please create a .apmrc file in folder C:\Users\<me>\.atom\ and not inside C:\Users\<me>\.atom\.apm\



hi,I am a chinese too. And I has the same problem with you. I want to know how you resove the proxy problem Request for package information failed: tunneling socket could not be established, cause=connect ETIMEDOUT when install a package ? thx.


On windows, it works for me, creating the file:

and adding:
http-proxy = http://:password@proxy.domain:8080
https-proxy = http:/:password@proxy.domain:8080


I know this is old, but…

Windows 7 - behind corporate proxy

The settings that FINALLY worked for me in .apmrc are these:


I tried a lot of other settings. These worked. Substitute your own proxy server name and port, of course. But our proxy server is just http:// and I think that was what I was missing at first.


This works perfectly for me.:slight_smile:


If you are on a firewall that needs password authentication you may need this:


Just copy these lines to your cmd / powershell to create the file:

echo https-proxy=>%USERPROFILE%\.atom\.apmrc
echo http-proxy=>>%USERPROFILE%\.atom\.apmrc
echo strict-ssl=false>>%USERPROFILE%\.atom\.apmrc


Works fine on Windows 7 Enterprise. In username, don’t needed the domain name server, only the username.