Installing packages fails every time
According to leedohm on discuss.atom.io:
- Windows 8.1
- Atom 1.0.0
Every attempt to install a package fails:

I performed tho following checks:
C:\Users\k5e\Desktop>apm -v
apm 1.0.1
npm 2.5.1
node 0.10.35
python 2.7.9
git 1.9.5.msysgit.0
visual studio
C:\Users\k5e\Desktop>apm test
Tests passed
C:\Users\k5e\Desktop>apm install --check
Checking for native build tools failed
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
gyp WARN install got an error, rolling back install
gyp
The --verbose switch of apm does not add any verbosity to the above commands, BTW.
All tools are in the PATH and i can run them from the command line. I sit behind a proxy. I have put the proxy conf into .apmrc:
C:\Users\k5e\Desktop>apm config list
; cli configs
globalconfig = "C:\\Users\\k5e\\.atom\\.apm\\.apmrc"
user-agent = "npm/2.5.1 node/v0.10.35 win32 ia32"
userconfig = "C:\\Users\\k5e\\.atom\\.apmrc"
; userconfig C:\Users\k5e\.atom\.apmrc
https-proxy = "http://proxy:8080/"
proxy = "http://proxy:8080/"
; globalconfig C:\Users\k5e\.atom\.apm\.apmrc
cache = "C:\\Users\\k5e\\.atom\\.apm"
; node bin location = C:\Users\k5e\AppData\Local\atom\app-1.0.0\resources\app\apm\bin\node.exe
; cwd = C:\Users\k5e\Desktop
; HOME = C:\Users\k5e
; 'npm config ls -l' to show all defaults.
Further, I have set the proxy configuration in the environment, so that all other tools like curl, wget, npm can use it. And they do.
What else should I check?
Well done for all the analysis so far! That's an excellent issue report.
Now, the node-gyp error often indicates an issue with visual studio. Which version do you have installed (Desktop or Web for example). Can you otherwise try to install the ,NET 3.5 framework?
Thank you for the flowers ;-)
I have installed Visual Studio Express 2013 for Windows Desktop (with Update 4), as indicated in the docs. There is no .NET 3.5 on the PC, but 4.5 and 4.5.1. Is 3.5 really necessary?
I think 3.5 includes 2.0 which is neede by node-gyp, but normally the VS tools for Desktop have all that anyway.
What about Python 2?
Hmm, I have used nmp (and thus node-gyp) often before (outside of apm) and it never complained about missing .NET 3.5 or 2.0. Python is 2.7.9
Well that's the end of my Latin then. Let's see if someone from the core team can help, once they have a breathing moment after the CodeConf today.
OK. Thank you so far.
Week-end is about take off soon and at home I use Linux. So there is no need to hurry.
Take care Christian
This is duplicate of https://github.com/atom/apm/issues/322 .
I had the same issue and this hotfix worked for me.
The issue seems to be caused by the node-gyp following redirect when downloading node-v0.22.0.tar.gz but forgetting about proxy settings after that redirect.
Thanks @kubetz :+1:
Thank @kubetz. the workaround did help:
C:\Users\k5e\Desktop>set ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
C:\Users\k5e\Desktop>apm install --check
Checking for native build tools done
C:\Users\k5e\Desktop>apm install minimap
Installing minimap to C:\Users\k5e\.atom\packages done
I am going to close this an I hope for a solution in #322
@k5e I tried to run all of your commands but I get this error
C:\Users\pinchasc>apm install --check
Checking for native build tools failed
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp http GET http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.36.
8/node-v0.36.8.tar.gz
gyp http 200 http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.36.
8/node-v0.36.8.tar.gz
gyp WARN install got an error, rolling back install
C:\Users\pinchasc>apm install minimap
Installing minimap to C:\Users\pinchasc\.atom\packages Unable to download https:
//www.atom.io/api/packages/minimap/versions/4.24.4/tarball: DEPTH_ZERO_SELF_SIGN
ED_CERT
Hi @TinoMuianga, Thanks for reaching out to me. As this is like seven years old, I do not even remotely remember, what exactly the issues were. And since then I have had three different PCs and I have had this problem never again. I suggest that you collect the exact circumstances and error messages an open a new issue. And make sure to use up-to-date software. From OS up to Atom.