Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

'npm install contextify' error on Ubuntu 14.04 #171

Closed
aussiDavid opened this issue Jul 7, 2015 · 10 comments
Closed

'npm install contextify' error on Ubuntu 14.04 #171

aussiDavid opened this issue Jul 7, 2015 · 10 comments

Comments

@aussiDavid
Copy link

$ npm install contextify
|
> contextify@0.1.14 install /var/www/aussiDavid.com/test/repositories/unipoller/node_modules/contextify
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/home/ubuntu/.nvm/v0.10.39/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343: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 Linux 3.13.0-53-generic
gyp ERR! command "node" "/home/ubuntu/.nvm/v0.10.39/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/aussiDavid.com/test/repositories/unipoller/node_modules/contextify
gyp ERR! node -v v0.10.39
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 

npm ERR! contextify@0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.14 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-53-generic
npm ERR! command "/home/ubuntu/.nvm/v0.10.39/bin/node" "/home/ubuntu/.nvm/v0.10.39/bin/npm" "install" "contextify"
npm ERR! cwd /var/www/aussiDavid.com/test/repositories/unipoller
npm ERR! node -v v0.10.39
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
@aussiDavid aussiDavid changed the title 'npm install contextify' error 'npm install contextify' error on Ubuntu 14.04 Jul 7, 2015
@oyvindma
Copy link

oyvindma commented Jul 9, 2015

Same trouble here.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty

Npm log:
.....
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Linux 3.13.0-34-generic
npm ERR! argv "node" "/home/k88714/.npm/bin/npm" "install"
npm ERR! node v0.10.31
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE
...
npm ERR! contextify@0.1.14 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.

Any solutions?

@brianmcd
Copy link
Owner

brianmcd commented Jul 9, 2015

Someone e-mailed me about this recently, and this fix worked for them: atom/atom#1981 (comment)

@oyvindma
Copy link

oyvindma commented Jul 9, 2015

Thanks. I now realize that i had a bit different problem. "sudo apt-get -y install g++" did the trick for me.

@piyushchauhan2011
Copy link

|
> contextify@0.1.14 install /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
> node-gyp rebuild

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 response dowloading http://nodejs.org/dist/v2.4.0/node-v2.4.0.tar.gz
gyp ERR! stack     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:251:14)
gyp ERR! stack     at emitOne (events.js:82:20)
gyp ERR! stack     at Request.emit (events.js:169:7)
gyp ERR! stack     at Request.onRequestResponse (/usr/local/lib/node_modules/npm/node_modules/request/request.js:985:10)
gyp ERR! stack     at emitOne (events.js:77:13)
gyp ERR! stack     at ClientRequest.emit (events.js:169:7)
gyp ERR! stack     at HTTPParser.parserOnIncomingClient (_http_client.js:415:21)
gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
gyp ERR! stack     at Socket.socketOnData (_http_client.js:305:20)
gyp ERR! stack     at emitOne (events.js:77:13)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "/usr/local/Cellar/iojs/2.4.0/bin/iojs" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
gyp ERR! node -v v2.4.0
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 14.4.0
npm ERR! argv "/usr/local/Cellar/iojs/2.4.0/bin/iojs" "/usr/local/bin/npm" "install" "contextify" "--save-dev"
npm ERR! node v2.4.0
npm ERR! npm  v2.13.0
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

Same problem on mac with iojs latest version.

@piyushchauhan2011
Copy link

Debug Log.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/iojs/2.4.0/bin/iojs',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'contextify',
1 verbose cli   '--save-dev' ]
2 info using npm@2.13.0
3 info using node@v2.4.0
4 verbose install initial load of /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/package.json
5 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/fluxxor/package.json
6 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/lodash/package.json
7 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/moment/package.json
8 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/ramda/package.json
9 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native/package.json
10 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native-icons/package.json
11 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native-keyboardevents/package.json
12 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native-navbar/package.json
13 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native-scrollable-tab-view/package.json
14 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native-search-bar/package.json
15 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/react-native-side-menu/package.json
16 verbose installManyTop reading scoped package data from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/rebound/package.json
17 info package.json ramda@0.17.1 No README data
18 info package.json react-native-icons@0.2.0 No license field.
19 info package.json moment@2.10.3 No license field.
20 info package.json rebound@0.0.13 license should be a valid SPDX license expression
21 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/package.json
22 silly cache add args [ 'contextify', null ]
23 verbose cache add spec contextify
24 silly cache add parsed spec { raw: 'contextify',
24 silly cache add   scope: null,
24 silly cache add   name: 'contextify',
24 silly cache add   rawSpec: '',
24 silly cache add   spec: '*',
24 silly cache add   type: 'range' }
25 silly addNamed contextify@*
26 verbose addNamed "*" is a valid semver range for contextify
27 silly addNameRange { name: 'contextify', range: '*', hasData: false }
28 silly mapToRegistry name contextify
29 silly mapToRegistry using default registry
30 silly mapToRegistry registry https://registry.npmjs.org/
31 silly mapToRegistry uri https://registry.npmjs.org/contextify
32 verbose addNameRange registry:https://registry.npmjs.org/contextify not in flight; fetching
33 verbose request uri https://registry.npmjs.org/contextify
34 verbose request no auth needed
35 info attempt registry request try #1 at 16:17:31
36 verbose request id 629c9ab0fc9cade4
37 verbose etag "3YXYN4N9CEB0MFSVNGRY8PG2G"
38 http request GET https://registry.npmjs.org/contextify
39 http 304 https://registry.npmjs.org/contextify
40 silly get cb [ 304,
40 silly get   { date: 'Sat, 25 Jul 2015 06:17:31 GMT',
40 silly get     via: '1.1 varnish',
40 silly get     'cache-control': 'max-age=60',
40 silly get     etag: '"3YXYN4N9CEB0MFSVNGRY8PG2G"',
40 silly get     age: '0',
40 silly get     connection: 'keep-alive',
40 silly get     'x-served-by': 'cache-syd1627-SYD',
40 silly get     'x-cache': 'MISS',
40 silly get     'x-cache-hits': '0',
40 silly get     'x-timer': 'S1437805051.930010,VS0,VE809',
40 silly get     vary: 'Accept' } ]
41 verbose etag https://registry.npmjs.org/contextify from cache
42 verbose get saving contextify to /Users/kartikeychauhan/.npm/registry.npmjs.org/contextify/.cache.json
43 silly addNameRange number 2 { name: 'contextify', range: '*', hasData: true }
44 silly addNameRange versions [ 'contextify',
44 silly addNameRange   [ '0.0.2',
44 silly addNameRange     '0.0.3',
44 silly addNameRange     '0.0.4',
44 silly addNameRange     '0.0.5',
44 silly addNameRange     '0.0.6',
44 silly addNameRange     '0.0.7',
44 silly addNameRange     '0.1.0',
44 silly addNameRange     '0.1.1',
44 silly addNameRange     '0.1.2',
44 silly addNameRange     '0.1.3',
44 silly addNameRange     '0.1.4',
44 silly addNameRange     '0.1.5',
44 silly addNameRange     '0.1.6',
44 silly addNameRange     '0.1.7',
44 silly addNameRange     '0.1.8',
44 silly addNameRange     '0.1.9',
44 silly addNameRange     '0.1.10',
44 silly addNameRange     '0.1.11',
44 silly addNameRange     '0.1.12',
44 silly addNameRange     '0.1.13',
44 silly addNameRange     '0.1.14' ] ]
45 silly addNamed contextify@0.1.14
46 verbose addNamed "0.1.14" is a plain semver version for contextify
47 silly cache afterAdd contextify@0.1.14
48 verbose afterAdd /Users/kartikeychauhan/.npm/contextify/0.1.14/package/package.json not in flight; writing
49 verbose afterAdd /Users/kartikeychauhan/.npm/contextify/0.1.14/package/package.json written
50 silly install resolved [ { name: 'contextify',
50 silly install resolved     version: '0.1.14',
50 silly install resolved     description: 'Turn an object into a persistent execution context.',
50 silly install resolved     author: { name: 'Brian McDaniel', email: 'brianmcd05@gmail.com' },
50 silly install resolved     contributors:
50 silly install resolved      [ [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object],
50 silly install resolved        [Object] ],
50 silly install resolved     keywords: [ 'context', 'vm' ],
50 silly install resolved     repository:
50 silly install resolved      { type: 'git',
50 silly install resolved        url: 'git+https://github.com/brianmcd/contextify.git' },
50 silly install resolved     main: './lib/contextify',
50 silly install resolved     scripts: { test: 'nodeunit test/', install: 'node-gyp rebuild' },
50 silly install resolved     engines: { node: '>=0.4.0' },
50 silly install resolved     licenses: [ [Object] ],
50 silly install resolved     dependencies: { bindings: '*', nan: '~1.8.4' },
50 silly install resolved     devDependencies: { nodeunit: '>=0.5.x' },
50 silly install resolved     gypfile: true,
50 silly install resolved     gitHead: '1ed0631b435f6301986cc0890c36a29d5c55de97',
50 silly install resolved     bugs: { url: 'https://github.com/brianmcd/contextify/issues' },
50 silly install resolved     homepage: 'https://github.com/brianmcd/contextify',
50 silly install resolved     _id: 'contextify@0.1.14',
50 silly install resolved     _shasum: '923667123ba1b96657b9cbd1a8aeb5e8a86ea0da',
50 silly install resolved     _from: 'contextify@*',
50 silly install resolved     _npmVersion: '2.7.4',
50 silly install resolved     _nodeVersion: '0.12.2',
50 silly install resolved     _npmUser: { name: 'brianmcd', email: 'brianmcd05@gmail.com' },
50 silly install resolved     maintainers: [ [Object] ],
50 silly install resolved     dist:
50 silly install resolved      { shasum: '923667123ba1b96657b9cbd1a8aeb5e8a86ea0da',
50 silly install resolved        tarball: 'http://registry.npmjs.org/contextify/-/contextify-0.1.14.tgz' },
50 silly install resolved     directories: {},
50 silly install resolved     _resolved: 'https://registry.npmjs.org/contextify/-/contextify-0.1.14.tgz',
50 silly install resolved     readme: 'ERROR: No README data found!' } ]
51 info install contextify@0.1.14 into /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit
52 info installOne contextify@0.1.14
53 verbose installOne of contextify to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit not in flight; installing
54 verbose lock using /Users/kartikeychauhan/.npm/_locks/contextify-7ff42262bd4cfe42.lock for /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
55 silly install write writing contextify 0.1.14 to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
56 verbose unbuild node_modules/contextify
57 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify is being purged from base /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit
58 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
59 verbose tar unpack /Users/kartikeychauhan/.npm/contextify/0.1.14/package.tgz
60 verbose tar unpacking to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
61 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify is being purged
62 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
63 silly gunzTarPerm modes [ '755', '644' ]
64 silly gunzTarPerm extractEntry package.json
65 silly gunzTarPerm extractEntry .npmignore
66 silly gunzTarPerm extractEntry README.md
67 silly gunzTarPerm extractEntry changelog
68 silly gunzTarPerm extractEntry binding.gyp
69 silly gunzTarPerm extractEntry lib/contextify.js
70 silly gunzTarPerm extractEntry test/contextify.js
71 silly gunzTarPerm extractEntry LICENSE.txt
72 silly gunzTarPerm extractEntry src/contextify.cc
73 silly gunzTarPerm extractEntry wscript
74 verbose write writing to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/package.json
75 info preinstall contextify@0.1.14
76 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/package.json
77 silly prepareForInstallMany adding bindings@* from contextify dependencies
78 silly prepareForInstallMany adding nan@~1.8.4 from contextify dependencies
79 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/package.json
80 silly cache add args [ 'bindings@*', null ]
81 verbose cache add spec bindings@*
82 silly cache add args [ 'nan@~1.8.4', null ]
83 verbose cache add spec nan@~1.8.4
84 silly cache add parsed spec { raw: 'bindings@*',
84 silly cache add   scope: null,
84 silly cache add   name: 'bindings',
84 silly cache add   rawSpec: '*',
84 silly cache add   spec: '*',
84 silly cache add   type: 'range' }
85 silly addNamed bindings@*
86 verbose addNamed "*" is a valid semver range for bindings
87 silly addNameRange { name: 'bindings', range: '*', hasData: false }
88 silly mapToRegistry name bindings
89 silly mapToRegistry using default registry
90 silly mapToRegistry registry https://registry.npmjs.org/
91 silly mapToRegistry uri https://registry.npmjs.org/bindings
92 verbose addNameRange registry:https://registry.npmjs.org/bindings not in flight; fetching
93 silly cache add parsed spec { raw: 'nan@~1.8.4',
93 silly cache add   scope: null,
93 silly cache add   name: 'nan',
93 silly cache add   rawSpec: '~1.8.4',
93 silly cache add   spec: '>=1.8.4 <1.9.0',
93 silly cache add   type: 'range' }
94 silly addNamed nan@>=1.8.4 <1.9.0
95 verbose addNamed ">=1.8.4 <1.9.0" is a valid semver range for nan
96 silly addNameRange { name: 'nan', range: '>=1.8.4 <1.9.0', hasData: false }
97 silly mapToRegistry name nan
98 silly mapToRegistry using default registry
99 silly mapToRegistry registry https://registry.npmjs.org/
100 silly mapToRegistry uri https://registry.npmjs.org/nan
101 verbose addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
102 verbose request uri https://registry.npmjs.org/bindings
103 verbose request no auth needed
104 info attempt registry request try #1 at 16:17:32
105 verbose etag "BCS5XYG9ISNJFNKEL5FLOI5HX"
106 http request GET https://registry.npmjs.org/bindings
107 verbose request uri https://registry.npmjs.org/nan
108 verbose request no auth needed
109 info attempt registry request try #1 at 16:17:32
110 verbose etag "9T2TEINHQE1CYR42PWQNCEY3X"
111 http request GET https://registry.npmjs.org/nan
112 http 304 https://registry.npmjs.org/nan
113 silly get cb [ 304,
113 silly get   { date: 'Sat, 25 Jul 2015 06:17:32 GMT',
113 silly get     via: '1.1 varnish',
113 silly get     'cache-control': 'max-age=60',
113 silly get     etag: '"9T2TEINHQE1CYR42PWQNCEY3X"',
113 silly get     age: '0',
113 silly get     connection: 'keep-alive',
113 silly get     'x-served-by': 'cache-syd1626-SYD',
113 silly get     'x-cache': 'HIT',
113 silly get     'x-cache-hits': '1',
113 silly get     'x-timer': 'S1437805052.926229,VS0,VE797',
113 silly get     vary: 'Accept' } ]
114 verbose etag https://registry.npmjs.org/nan from cache
115 verbose get saving nan to /Users/kartikeychauhan/.npm/registry.npmjs.org/nan/.cache.json
116 http 304 https://registry.npmjs.org/bindings
117 silly get cb [ 304,
117 silly get   { date: 'Sat, 25 Jul 2015 06:17:32 GMT',
117 silly get     via: '1.1 varnish',
117 silly get     'cache-control': 'max-age=60',
117 silly get     etag: '"BCS5XYG9ISNJFNKEL5FLOI5HX"',
117 silly get     age: '0',
117 silly get     connection: 'keep-alive',
117 silly get     'x-served-by': 'cache-syd1622-SYD',
117 silly get     'x-cache': 'HIT',
117 silly get     'x-cache-hits': '1',
117 silly get     'x-timer': 'S1437805052.925818,VS0,VE801',
117 silly get     vary: 'Accept' } ]
118 verbose etag https://registry.npmjs.org/bindings from cache
119 verbose get saving bindings to /Users/kartikeychauhan/.npm/registry.npmjs.org/bindings/.cache.json
120 silly addNameRange number 2 { name: 'nan', range: '>=1.8.4 <1.9.0', hasData: true }
121 silly addNameRange versions [ 'nan',
121 silly addNameRange   [ '0.3.0-wip',
121 silly addNameRange     '0.3.0-wip2',
121 silly addNameRange     '0.3.0',
121 silly addNameRange     '0.3.1',
121 silly addNameRange     '0.3.2',
121 silly addNameRange     '0.4.0',
121 silly addNameRange     '0.4.1',
121 silly addNameRange     '0.4.2',
121 silly addNameRange     '0.4.3',
121 silly addNameRange     '0.4.4',
121 silly addNameRange     '0.5.0',
121 silly addNameRange     '0.5.1',
121 silly addNameRange     '0.5.2',
121 silly addNameRange     '0.6.0',
121 silly addNameRange     '0.7.0',
121 silly addNameRange     '0.7.1',
121 silly addNameRange     '0.8.0',
121 silly addNameRange     '1.0.0',
121 silly addNameRange     '1.1.0',
121 silly addNameRange     '1.1.1',
121 silly addNameRange     '1.1.2',
121 silly addNameRange     '1.2.0',
121 silly addNameRange     '1.3.0',
121 silly addNameRange     '1.4.0',
121 silly addNameRange     '1.4.1',
121 silly addNameRange     '1.5.0',
121 silly addNameRange     '1.4.2',
121 silly addNameRange     '1.4.3',
121 silly addNameRange     '1.5.1',
121 silly addNameRange     '1.5.2',
121 silly addNameRange     '1.6.0',
121 silly addNameRange     '1.5.3',
121 silly addNameRange     '1.6.1',
121 silly addNameRange     '1.6.2',
121 silly addNameRange     '1.7.0',
121 silly addNameRange     '1.8.0',
121 silly addNameRange     '1.8.1',
121 silly addNameRange     '1.8.2',
121 silly addNameRange     '1.8.3',
121 silly addNameRange     '1.8.4' ] ]
122 silly addNamed nan@1.8.4
123 verbose addNamed "1.8.4" is a plain semver version for nan
124 silly addNameRange number 2 { name: 'bindings', range: '*', hasData: true }
125 silly addNameRange versions [ 'bindings',
125 silly addNameRange   [ '0.0.1',
125 silly addNameRange     '0.1.0',
125 silly addNameRange     '0.1.1',
125 silly addNameRange     '0.2.0',
125 silly addNameRange     '0.2.1',
125 silly addNameRange     '0.2.2',
125 silly addNameRange     '0.2.3',
125 silly addNameRange     '0.2.4',
125 silly addNameRange     '0.3.0',
125 silly addNameRange     '0.4.0',
125 silly addNameRange     '1.0.0',
125 silly addNameRange     '1.1.0',
125 silly addNameRange     '1.1.1',
125 silly addNameRange     '1.2.0',
125 silly addNameRange     '1.2.1' ] ]
126 silly addNamed bindings@1.2.1
127 verbose addNamed "1.2.1" is a plain semver version for bindings
128 silly cache afterAdd bindings@1.2.1
129 verbose afterAdd /Users/kartikeychauhan/.npm/bindings/1.2.1/package/package.json not in flight; writing
130 silly cache afterAdd nan@1.8.4
131 verbose afterAdd /Users/kartikeychauhan/.npm/nan/1.8.4/package/package.json not in flight; writing
132 verbose afterAdd /Users/kartikeychauhan/.npm/bindings/1.2.1/package/package.json written
133 verbose afterAdd /Users/kartikeychauhan/.npm/nan/1.8.4/package/package.json written
134 silly install resolved [ { name: 'bindings',
134 silly install resolved     description: 'Helper module for loading your native module\'s .node file',
134 silly install resolved     keywords: [ 'native', 'addon', 'bindings', 'gyp', 'waf', 'c', 'c++' ],
134 silly install resolved     version: '1.2.1',
134 silly install resolved     author:
134 silly install resolved      { name: 'Nathan Rajlich',
134 silly install resolved        email: 'nathan@tootallnate.net',
134 silly install resolved        url: 'http://tootallnate.net' },
134 silly install resolved     repository:
134 silly install resolved      { type: 'git',
134 silly install resolved        url: 'git://github.com/TooTallNate/node-bindings.git' },
134 silly install resolved     main: './bindings.js',
134 silly install resolved     bugs: { url: 'https://github.com/TooTallNate/node-bindings/issues' },
134 silly install resolved     homepage: 'https://github.com/TooTallNate/node-bindings',
134 silly install resolved     license: 'MIT',
134 silly install resolved     gitHead: 'e404152ee27f8478ccbc7122ee051246e8e5ec02',
134 silly install resolved     _id: 'bindings@1.2.1',
134 silly install resolved     scripts: {},
134 silly install resolved     _shasum: '14ad6113812d2d37d72e67b4cacb4bb726505f11',
134 silly install resolved     _from: 'bindings@*',
134 silly install resolved     _npmVersion: '1.4.14',
134 silly install resolved     _npmUser: { name: 'tootallnate', email: 'nathan@tootallnate.net' },
134 silly install resolved     maintainers: [ [Object], [Object] ],
134 silly install resolved     dist:
134 silly install resolved      { shasum: '14ad6113812d2d37d72e67b4cacb4bb726505f11',
134 silly install resolved        tarball: 'http://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz' },
134 silly install resolved     directories: {},
134 silly install resolved     _resolved: 'https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz',
134 silly install resolved     readme: 'ERROR: No README data found!' },
134 silly install resolved   { name: 'nan',
134 silly install resolved     version: '1.8.4',
134 silly install resolved     description: 'Native Abstractions for Node.js: C++ header for Node 0.8->0.12 compatibility',
134 silly install resolved     main: 'include_dirs.js',
134 silly install resolved     repository: { type: 'git', url: 'git://github.com/iojs/nan.git' },
134 silly install resolved     scripts:
134 silly install resolved      { test: 'tap --gc test/js/*-test.js',
134 silly install resolved        'rebuild-tests': 'pangyp rebuild --directory test' },
134 silly install resolved     contributors:
134 silly install resolved      [ [Object],
134 silly install resolved        [Object],
134 silly install resolved        [Object],
134 silly install resolved        [Object],
134 silly install resolved        [Object],
134 silly install resolved        [Object],
134 silly install resolved        [Object] ],
134 silly install resolved     devDependencies:
134 silly install resolved      { bindings: '~1.2.1',
134 silly install resolved        'node-gyp': '~1.0.2',
134 silly install resolved        pangyp: '~2.0.1',
134 silly install resolved        tap: '~0.7.1',
134 silly install resolved        xtend: '~4.0.0' },
134 silly install resolved     license: 'MIT',
134 silly install resolved     gitHead: 'ed3bbf4ced0cf7937b4e4164766797f71aa97f3d',
134 silly install resolved     bugs: { url: 'https://github.com/iojs/nan/issues' },
134 silly install resolved     homepage: 'https://github.com/iojs/nan#readme',
134 silly install resolved     _id: 'nan@1.8.4',
134 silly install resolved     _shasum: '3c76b5382eab33e44b758d2813ca9d92e9342f34',
134 silly install resolved     _from: 'nan@>=1.8.4 <1.9.0',
134 silly install resolved     _npmVersion: '2.8.3',
134 silly install resolved     _nodeVersion: '0.12.2',
134 silly install resolved     _npmUser: { name: 'kkoopa', email: 'bbyholm@abo.fi' },
134 silly install resolved     maintainers: [ [Object], [Object] ],
134 silly install resolved     dist:
134 silly install resolved      { shasum: '3c76b5382eab33e44b758d2813ca9d92e9342f34',
134 silly install resolved        tarball: 'http://registry.npmjs.org/nan/-/nan-1.8.4.tgz' },
134 silly install resolved     directories: {},
134 silly install resolved     _resolved: 'https://registry.npmjs.org/nan/-/nan-1.8.4.tgz',
134 silly install resolved     readme: 'ERROR: No README data found!' } ]
135 info install bindings@1.2.1 into /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
136 info install nan@1.8.4 into /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
137 info installOne bindings@1.2.1
138 verbose installOne of bindings to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify not in flight; installing
139 info installOne nan@1.8.4
140 verbose installOne of nan to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify not in flight; installing
141 verbose lock using /Users/kartikeychauhan/.npm/_locks/bindings-e3bd61e2c315114b.lock for /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
142 verbose lock using /Users/kartikeychauhan/.npm/_locks/nan-58c1e4db56a31944.lock for /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
143 silly install write writing bindings 1.2.1 to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
144 silly install write writing nan 1.8.4 to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
145 verbose unbuild node_modules/contextify/node_modules/bindings
146 verbose unbuild node_modules/contextify/node_modules/nan
147 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings is being purged from base /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit
148 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
149 verbose tar unpack /Users/kartikeychauhan/.npm/bindings/1.2.1/package.tgz
150 verbose tar unpacking to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
151 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings is being purged
152 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
153 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan is being purged from base /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit
154 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
155 silly gunzTarPerm modes [ '755', '644' ]
156 verbose tar unpack /Users/kartikeychauhan/.npm/nan/1.8.4/package.tgz
157 verbose tar unpacking to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
158 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan is being purged
159 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
160 silly gunzTarPerm modes [ '755', '644' ]
161 silly gunzTarPerm extractEntry package.json
162 silly gunzTarPerm extractEntry package.json
163 silly gunzTarPerm modified mode [ 'package.json', 436, 420 ]
164 silly gunzTarPerm extractEntry README.md
165 silly gunzTarPerm extractEntry bindings.js
166 silly gunzTarPerm extractEntry README.md
167 silly gunzTarPerm modified mode [ 'README.md', 436, 420 ]
168 silly gunzTarPerm extractEntry include_dirs.js
169 silly gunzTarPerm modified mode [ 'include_dirs.js', 436, 420 ]
170 silly gunzTarPerm extractEntry LICENSE.md
171 silly gunzTarPerm modified mode [ 'LICENSE.md', 436, 420 ]
172 silly gunzTarPerm extractEntry .dntrc
173 silly gunzTarPerm modified mode [ '.dntrc', 436, 420 ]
174 silly gunzTarPerm extractEntry appveyor.yml
175 silly gunzTarPerm modified mode [ 'appveyor.yml', 436, 420 ]
176 silly gunzTarPerm extractEntry nan.h
177 silly gunzTarPerm modified mode [ 'nan.h', 436, 420 ]
178 verbose write writing to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings/package.json
179 info preinstall bindings@1.2.1
180 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings/package.json
181 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings/package.json
182 silly gunzTarPerm extractEntry nan_implementation_12_inl.h
183 silly gunzTarPerm modified mode [ 'nan_implementation_12_inl.h', 436, 420 ]
184 silly install resolved []
185 verbose about to build /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
186 info build /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
187 info linkStuff bindings@1.2.1
188 silly linkStuff bindings@1.2.1 has /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules as its parent node_modules
189 verbose linkBins bindings@1.2.1
190 verbose linkMans bindings@1.2.1
191 verbose rebuildBundles bindings@1.2.1
192 info install bindings@1.2.1
193 info postinstall bindings@1.2.1
194 verbose unlock done using /Users/kartikeychauhan/.npm/_locks/bindings-e3bd61e2c315114b.lock for /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/bindings
195 silly gunzTarPerm extractEntry nan_implementation_pre_12_inl.h
196 silly gunzTarPerm modified mode [ 'nan_implementation_pre_12_inl.h', 436, 420 ]
197 silly gunzTarPerm extractEntry nan_new.h
198 silly gunzTarPerm modified mode [ 'nan_new.h', 436, 420 ]
199 silly gunzTarPerm extractEntry nan_string_bytes.h
200 silly gunzTarPerm modified mode [ 'nan_string_bytes.h', 436, 420 ]
201 silly gunzTarPerm extractEntry CHANGELOG.md
202 silly gunzTarPerm modified mode [ 'CHANGELOG.md', 436, 420 ]
203 verbose write writing to /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan/package.json
204 info preinstall nan@1.8.4
205 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan/package.json
206 verbose readDependencies loading dependencies from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan/package.json
207 silly install resolved []
208 verbose about to build /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
209 info build /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
210 info linkStuff nan@1.8.4
211 silly linkStuff nan@1.8.4 has /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules as its parent node_modules
212 verbose linkBins nan@1.8.4
213 verbose linkMans nan@1.8.4
214 verbose rebuildBundles nan@1.8.4
215 info install nan@1.8.4
216 info postinstall nan@1.8.4
217 verbose unlock done using /Users/kartikeychauhan/.npm/_locks/nan-58c1e4db56a31944.lock for /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify/node_modules/nan
218 verbose about to build /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
219 info build /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
220 info linkStuff contextify@0.1.14
221 silly linkStuff contextify@0.1.14 has /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules as its parent node_modules
222 verbose linkBins contextify@0.1.14
223 verbose linkMans contextify@0.1.14
224 verbose rebuildBundles contextify@0.1.14
225 verbose rebuildBundles [ 'bindings', 'nan' ]
226 info install contextify@0.1.14
227 verbose unsafe-perm in lifecycle true
228 info contextify@0.1.14 Failed to exec install script
229 verbose unlock done using /Users/kartikeychauhan/.npm/_locks/contextify-7ff42262bd4cfe42.lock for /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
230 verbose stack Error: contextify@0.1.14 install: `node-gyp rebuild`
230 verbose stack Exit status 1
230 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
230 verbose stack     at emitTwo (events.js:87:13)
230 verbose stack     at EventEmitter.emit (events.js:172:7)
230 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
230 verbose stack     at emitTwo (events.js:87:13)
230 verbose stack     at ChildProcess.emit (events.js:172:7)
230 verbose stack     at maybeClose (internal/child_process.js:764:16)
230 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
231 verbose pkgid contextify@0.1.14
232 verbose cwd /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit
233 error Darwin 14.4.0
234 error argv "/usr/local/Cellar/iojs/2.4.0/bin/iojs" "/usr/local/bin/npm" "install" "contextify" "--save-dev"
235 error node v2.4.0
236 error npm  v2.13.0
237 error code ELIFECYCLE
238 error contextify@0.1.14 install: `node-gyp rebuild`
238 error Exit status 1
239 error Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
239 error This is most likely a problem with the contextify package,
239 error not with npm itself.
239 error Tell the author that this fails on your system:
239 error     node-gyp rebuild
239 error You can get their info via:
239 error     npm owner ls contextify
239 error There is likely additional logging output above.
240 verbose exit [ 1, true ]
241 verbose unbuild node_modules/contextify
242 info preuninstall contextify@0.1.14
243 info uninstall contextify@0.1.14
244 verbose unbuild rmStuff contextify@0.1.14 from /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules
245 info postuninstall contextify@0.1.14
246 silly gentlyRm /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify is being purged from base /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit
247 verbose gentlyRm don't care about contents; nuking /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
248 silly vacuum-fs purging /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules/contextify
249 silly vacuum-fs quitting because other entries in /Users/kartikeychauhan/Documents/testcodes/react-native-test/Docit/node_modules

@pkosenko
Copy link

I just got this same error on Windows trying to install. I know that I have yet to install Python for recompiling python executables, but this has not been a fatal error so far, if NPM is installing binaries. Now it seems to be generating an error due to "contextify":

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE <-- end of life cycle?

npm ERR! contextify@0.1.14 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.

@pkosenko
Copy link

I installed Python 2.7 (on Windows 7) with the Windows PATH variable modified so that I would not get the node-gyp errors when node-gyp asks for Python.

I now have a command line that hangs at some sort of batch file processing. Note that below I attempted to terminate the installation after waiting about fifteen minutes while doing other things. NPM gave me a "Terminate batch job (Y?N)?" message.

And it seems that contextify is causing the problem AGAIN. Note that the error occurs where contextify seems to be invoking node-gyp:

contextify@0.1.14 install c:\ . . . \react-sanfona\node_modules\jsdom\node_modules\contextify
node-gyp rebuild

c:. . . node_modules\jsdom\node_modules\contextify>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
^C
Terminate batch job (Y/N)? user@USER~/. . . /react-sanfona (master)
$ n
[waited some more for the install to resume . . . but nothing]

There is something seriously wrong with Contextify if it is ruining people's ability to install projects.

@pkosenko
Copy link

The problem may be node-gyp, and it looks to me like the solution is such a nightmare that whoever is in charge of the overall Node project should consider UPDATING node-gyp so that it works well on current windows without having to install a bunch of extra microsoft software and updates. Node software should not be dependent on Microsoft Visual Studio ($$$), for example.

https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/

@helloncanella
Copy link

The approach of @oyvindma worked for me. Just type sudo apt-get -y install g++ on terminal, and do npm install contextify again.

@sebilasse
Copy link

might be a dup of #188

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants