Can't install any packages - Windows 7


#1

I’m trying to install packages and finding that they ALL fail with this message:

Installing “language-powershell@2.1.0” failed.
gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.2
gyp info using node@0.10.40 | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.34.0/node-v0.34.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 what I get if I run apm install --check:

gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.2
gyp info using node@0.10.40 | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.34.0/node-v0.34.0.tar.gz
gyp WARN install got an error, rolling back install
gyp

I have Visual Studio 2013 and 2015 installed, as well as python 2.7.10, and if I run apm -v I see this:

> apm -v
apm  1.4.0
npm  2.13.3
node 0.10.40
python 2.7.10
git 1.9.4.msysgit.2
visual studio 2013

So I’m stumped. I am behind a corporate firewall, but have set up the proxy settings and Atom is able to see online packages, it just fails to install 'em.


#2

You may be running into this issue:

You may want to try this suggestion:


#3

Thanks for the link. I tried updating request. To do this I had to set the proxy settings for npm:

> npm config set proxy http://myproxy:3128
> npm config set https-proxy http://myproxy:3128

then

> npm install request@2.67.0
request@2.67.0 node_modules\request
├── is-typedarray@1.0.0
├── aws-sign2@0.6.0
├── forever-agent@0.6.1
├── caseless@0.11.0
├── stringstream@0.0.5
├── oauth-sign@0.8.0
├── tunnel-agent@0.4.1
├── isstream@0.1.2
├── json-stringify-safe@5.0.1
├── extend@3.0.0
├── node-uuid@1.4.7
├── combined-stream@1.0.5 (delayed-stream@1.0.0)
├── qs@5.2.0
├── tough-cookie@2.2.1
├── mime-types@2.1.7 (mime-db@1.19.0)
├── form-data@1.0.0-rc3 (async@1.5.0)
├── bl@1.0.0 (readable-stream@2.0.4)
├── hawk@3.1.2 (cryptiles@2.0.5, sntp@1.0.9, boom@2.10.1, hoek@2.16.3)
├── http-signature@1.1.0 (assert-plus@0.1.5, sshpk@1.7.0, jsprim@1.2.2)
└── har-validator@2.0.3 (pinkie-promise@2.0.0, commander@2.9.0, chalk@1.1.1, is-my-json-valid@2.12.3)

but still:

> apm install --check
Checking for native build tools failed

gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.2
gyp info using node@0.10.40 | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.34.0/node-v0.34.0.tar.gz
gyp WARN install got an error, rolling back install
gyp

#4

Did you try this?


#5

Thanks, that fixed it. It did have the side effect that I can’t load information about packages until I download them, but I can live with that.