Installing packages fails every time (Windows 8.1, atom 1.0)


#1

I installed atom using the Windows installer.

Afterwards I tried to install packages. Each attempt fails with a message like this:

Installing “color-picker@2.0.7” failed. Hide output…
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.10.35 | 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 
Compiler tools not found
Packages that depend on modules that contain C/C++ code will fail to install.
Read here for instructions on installing Python and Visual Studio.
Run apm install --check after installing to test compiling a native module.

This is the output on the command line:

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 node-gyp@1.0.2
gyp info using node@0.10.35 | 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

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?

Christian


#2

Do you have all of the requirements listed here:


#3

Hi,
thank you for the fast reply.

Yes. See the output of apm -v, mentioned above:

Visual Studio is a fresh install. I installed it after the first failing package installations according to the document you mentioned.

All of the above are in the path, except node, of which I have an existing installation of a newer (0.12.x) release.


Christian


#4

Please open a bug on https://github.com/atom/apm/issues. When you do, please post a link to that issue here in the topic so that we can have it for future reference.

Sorry about the issues :frowning:


#5

Is node 0.12 already supported actually?


#6

https://github.com/atom/apm/issues/384


#7

According to https://github.com/atom/atom/blob/master/docs/build-instructions/windows.md, yes.

apm uses its embedded node version 0.10.35, see apm -v output.