Installing node-v0.36.8


#1

I am using Atom on windows. I am trying to install some packages but it fails.

I switched to command line and tried to install it using apm command

apm install build-cmake --verbose

It throws me following error:

REQUEST response end http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dis
t/v0.36.8/node-v0.36.8.tar.gz 302 { server: 'Cowboy',
  connection: 'close',
  date: 'Mon, 25 Apr 2016 09:40:56 GMT',
  status: '302 Found',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'strict-transport-security': 'max-age=631152000',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-s
rc https://github-atom-io-herokuapp-com.global.ssl.fastly.net; frame-src \'self\
' https://www.youtube.com; img-src https://* \'self\' https://github-atom-io-her
okuapp-com.global.ssl.fastly.net data:; media-src \'none\'; object-src \'self\'
https://github-atom-io-herokuapp-com.global.ssl.fastly.net; script-src \'self\'
\'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.
com https://platform.twitter.com https://github-atom-io-herokuapp-com.global.ssl
.fastly.net; style-src \'self\' \'unsafe-inline\' https://github-atom-io-herokua
pp-com.global.ssl.fastly.net;',
  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.36.
8/node-v0.36.8.tar.gz',
  'content-type': 'text/html; charset=utf-8',
  'cache-control': 'no-cache',
  'x-request-id': '0a6d1fd1-e757-4e2a-808e-fa1e6917fa01',
  'x-runtime': '0.006269',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
REQUEST make request http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dis
t/v0.36.8/node-v0.36.8.tar.gz
gyp WARN install got an error, rolling back install
gyp verb command remove [ '0.36.8' ]
gyp verb remove using node-gyp dir: \.atom\.node-gyp\.node-gyp
gyp verb remove

I have no experience with node. But I saw that there is some problem with node-gyp installing something called node-v0.36.8. So I tried to install this module directly using node-gyp.

Downloaded the module from https://atom.io/download/atom-shell/v0.36.8/node-v0.36.8.tar.gz.

Unzipped it and then executed the following command:

node-gyp configure

And got the following error:

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 info spawn python
gyp info spawn args [ 'AppData\\Local\\atom\\app-1.7.2\\reso
urces\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   '\\node-v0.36.8\\bui
ld\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'node-v0.36.8\\con
fig.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'node-v0.36.8\\com
mon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'atom\\app-1.7.2\\reso
urces\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '.node-gyp\\0.10.40\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=.node-gyp\\0.10.40',
gyp info spawn args   '-Dnode_gyp_dir=atom\\
app-1.7.2\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dmodule_root_dir=
\node-v0.36.8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'node-v0.36.8\\bui
ld',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: node-v0.36.8
) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (atom
\app-1.7.2\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\configur
e.js:357:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "atom\\app-1.7.2\\re
sources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"
"configure"
gyp ERR! cwd node-v0.36.8
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok

That dint go well either. Now, I am stuck.

Any help is appreciated.

Some questions:

  1. What is this package node-v0.36.8? How to install it? it doesn’t seem to have bindings.gyp.

#2

Any help? Thanks.


#3

I’m not sure what that package is for. Do you get this error when trying to install any other packages?


#4

Yes. All packages.

Looking at the URL, it looks like, it belongs to atom shell.

https://atom.io/download/atom-shell/v0.36.8/node-v0.36.8.tar.gz1

My guess it has something to do with compiling native code, since it has libraries and c header files.


#5

Are you sure this isn’t a proxy error while attempting to download the module?