Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Problem with node-gyp rebuild when installing #41

@adamyonk

Description

@adamyonk
❯ npm i [email protected]
npm WARN lifecycle The node binary used for scripts is /Users/adam/.asdf/shims/node but npm is using /Users/adam/.asdf/installs/nodejs/8.9.4/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] install /private/tmp/dummy/node_modules/keyboard-layout
> node-gyp rebuild

nodejs 0.11.13 not installed
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/adam/.npm/_logs/2018-06-14T00_13_51_842Z-debug.log
❯ npm doctor
Check                               Value                        Recommendation
npm ping                            OK
npm -v                              v5.6.0                       Use npm v6.1.0
node -v                             v8.9.4                       Use node v8.11.3
npm config get registry             https://registry.npmjs.org/
which git                           /usr/local/bin/git
Perms check on cached files         ok
Perms check on global node_modules  ok
Perms check on local node_modules   ok
Verify cache contents               verified 2008 tarballs
Click to expand 2018-06-14T00_13_51_842Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/adam/.asdf/installs/nodejs/8.9.4/bin/node',
1 verbose cli   '/Users/adam/.asdf/installs/nodejs/8.9.4/bin/npm',
1 verbose cli   'i',
1 verbose cli   '[email protected]' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 647e1bf826b375d2
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/keyboard-layout 12ms (from cache)
8 silly pacote version manifest for [email protected] fetched in 36ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule [email protected] checking installable status
14 http fetch GET 200 https://registry.npmjs.org/nan 4ms (from cache)
15 http fetch GET 200 https://registry.npmjs.org/event-kit 6ms (from cache)
16 silly pacote range manifest for nan@^2.0.0 fetched in 6ms
17 silly resolveWithNewModule [email protected] checking installable status
18 silly pacote range manifest for event-kit@^1.0.0 fetched in 8ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 200 https://registry.npmjs.org/grim 2ms (from cache)
21 silly pacote range manifest for grim@^1.2.1 fetched in 3ms
22 silly resolveWithNewModule [email protected] checking installable status
23 http fetch GET 200 https://registry.npmjs.org/emissary 1ms (from cache)
24 silly pacote range manifest for emissary@^1.2.0 fetched in 2ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 200 https://registry.npmjs.org/underscore-plus 12ms (from cache)
27 http fetch GET 200 https://registry.npmjs.org/mixto 10ms (from cache)
28 http fetch GET 200 https://registry.npmjs.org/property-accessors 10ms (from cache)
29 http fetch GET 200 https://registry.npmjs.org/es6-weak-map 11ms (from cache)
30 silly pacote range manifest for [email protected] fetched in 14ms
31 silly resolveWithNewModule [email protected] checking installable status
32 silly pacote range manifest for [email protected] fetched in 13ms
33 silly resolveWithNewModule [email protected] checking installable status
34 silly pacote range manifest for property-accessors@^1.1 fetched in 13ms
35 silly resolveWithNewModule [email protected] checking installable status
36 silly pacote range manifest for es6-weak-map@^0.1.2 fetched in 13ms
37 silly resolveWithNewModule [email protected] checking installable status
38 http fetch GET 200 https://registry.npmjs.org/d 3ms (from cache)
39 http fetch GET 200 https://registry.npmjs.org/es6-iterator 3ms (from cache)
40 http fetch GET 200 https://registry.npmjs.org/es6-symbol 3ms (from cache)
41 silly pacote range manifest for d@~0.1.1 fetched in 4ms
42 silly resolveWithNewModule [email protected] checking installable status
43 silly pacote range manifest for es6-iterator@~0.1.3 fetched in 4ms
44 silly resolveWithNewModule [email protected] checking installable status
45 silly pacote range manifest for es6-symbol@~2.0.1 fetched in 5ms
46 silly resolveWithNewModule [email protected] checking installable status
47 http fetch GET 200 https://registry.npmjs.org/underscore 2ms (from cache)
48 silly pacote range manifest for underscore@~1.8.3 fetched in 3ms
49 silly resolveWithNewModule [email protected] checking installable status
50 silly currentTree [email protected]
50 silly currentTree ├─┬ [email protected]
50 silly currentTree │ ├── [email protected]
50 silly currentTree │ ├── [email protected]
50 silly currentTree │ └── [email protected]
50 silly currentTree └── [email protected]
51 silly idealTree [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├─┬ [email protected]
51 silly idealTree │ ├── [email protected]
51 silly idealTree │ ├── [email protected]
51 silly idealTree │ └── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree ├── [email protected]
51 silly idealTree └── [email protected]
52 silly install generateActionsToTake
53 silly diffTrees action count 13
54 silly diffTrees add [email protected]
55 silly diffTrees add [email protected]
56 silly diffTrees add [email protected]
57 silly diffTrees add [email protected]
58 silly diffTrees add [email protected]
59 silly diffTrees add [email protected]
60 silly diffTrees add [email protected]
61 silly diffTrees add [email protected]
62 silly diffTrees add [email protected]
63 silly diffTrees add [email protected]
64 silly diffTrees add [email protected]
65 silly diffTrees add [email protected]
66 silly diffTrees add [email protected]
67 silly decomposeActions action count 104
68 silly decomposeActions fetch [email protected]
69 silly decomposeActions extract [email protected]
70 silly decomposeActions preinstall [email protected]
71 silly decomposeActions build [email protected]
72 silly decomposeActions install [email protected]
73 silly decomposeActions postinstall [email protected]
74 silly decomposeActions finalize [email protected]
75 silly decomposeActions refresh-package-json [email protected]
76 silly decomposeActions fetch [email protected]
77 silly decomposeActions extract [email protected]
78 silly decomposeActions preinstall [email protected]
79 silly decomposeActions build [email protected]
80 silly decomposeActions install [email protected]
81 silly decomposeActions postinstall [email protected]
82 silly decomposeActions finalize [email protected]
83 silly decomposeActions refresh-package-json [email protected]
84 silly decomposeActions fetch [email protected]
85 silly decomposeActions extract [email protected]
86 silly decomposeActions preinstall [email protected]
87 silly decomposeActions build [email protected]
88 silly decomposeActions install [email protected]
89 silly decomposeActions postinstall [email protected]
90 silly decomposeActions finalize [email protected]
91 silly decomposeActions refresh-package-json [email protected]
92 silly decomposeActions fetch [email protected]
93 silly decomposeActions extract [email protected]
94 silly decomposeActions preinstall [email protected]
95 silly decomposeActions build [email protected]
96 silly decomposeActions install [email protected]
97 silly decomposeActions postinstall [email protected]
98 silly decomposeActions finalize [email protected]
99 silly decomposeActions refresh-package-json [email protected]
100 silly decomposeActions fetch [email protected]
101 silly decomposeActions extract [email protected]
102 silly decomposeActions preinstall [email protected]
103 silly decomposeActions build [email protected]
104 silly decomposeActions install [email protected]
105 silly decomposeActions postinstall [email protected]
106 silly decomposeActions finalize [email protected]
107 silly decomposeActions refresh-package-json [email protected]
108 silly decomposeActions fetch [email protected]
109 silly decomposeActions extract [email protected]
110 silly decomposeActions preinstall [email protected]
111 silly decomposeActions build [email protected]
112 silly decomposeActions install [email protected]
113 silly decomposeActions postinstall [email protected]
114 silly decomposeActions finalize [email protected]
115 silly decomposeActions refresh-package-json [email protected]
116 silly decomposeActions fetch [email protected]
117 silly decomposeActions extract [email protected]
118 silly decomposeActions preinstall [email protected]
119 silly decomposeActions build [email protected]
120 silly decomposeActions install [email protected]
121 silly decomposeActions postinstall [email protected]
122 silly decomposeActions finalize [email protected]
123 silly decomposeActions refresh-package-json [email protected]
124 silly decomposeActions fetch [email protected]
125 silly decomposeActions extract [email protected]
126 silly decomposeActions preinstall [email protected]
127 silly decomposeActions build [email protected]
128 silly decomposeActions install [email protected]
129 silly decomposeActions postinstall [email protected]
130 silly decomposeActions finalize [email protected]
131 silly decomposeActions refresh-package-json [email protected]
132 silly decomposeActions fetch [email protected]
133 silly decomposeActions extract [email protected]
134 silly decomposeActions preinstall [email protected]
135 silly decomposeActions build [email protected]
136 silly decomposeActions install [email protected]
137 silly decomposeActions postinstall [email protected]
138 silly decomposeActions finalize [email protected]
139 silly decomposeActions refresh-package-json [email protected]
140 silly decomposeActions fetch [email protected]
141 silly decomposeActions extract [email protected]
142 silly decomposeActions preinstall [email protected]
143 silly decomposeActions build [email protected]
144 silly decomposeActions install [email protected]
145 silly decomposeActions postinstall [email protected]
146 silly decomposeActions finalize [email protected]
147 silly decomposeActions refresh-package-json [email protected]
148 silly decomposeActions fetch [email protected]
149 silly decomposeActions extract [email protected]
150 silly decomposeActions preinstall [email protected]
151 silly decomposeActions build [email protected]
152 silly decomposeActions install [email protected]
153 silly decomposeActions postinstall [email protected]
154 silly decomposeActions finalize [email protected]
155 silly decomposeActions refresh-package-json [email protected]
156 silly decomposeActions fetch [email protected]
157 silly decomposeActions extract [email protected]
158 silly decomposeActions preinstall [email protected]
159 silly decomposeActions build [email protected]
160 silly decomposeActions install [email protected]
161 silly decomposeActions postinstall [email protected]
162 silly decomposeActions finalize [email protected]
163 silly decomposeActions refresh-package-json [email protected]
164 silly decomposeActions fetch [email protected]
165 silly decomposeActions extract [email protected]
166 silly decomposeActions preinstall [email protected]
167 silly decomposeActions build [email protected]
168 silly decomposeActions install [email protected]
169 silly decomposeActions postinstall [email protected]
170 silly decomposeActions finalize [email protected]
171 silly decomposeActions refresh-package-json [email protected]
172 silly install executeActions
173 silly doSerial global-install 104
174 verbose correctMkdir /Users/adam/.npm/_locks correctMkdir not in flight; initializing
175 verbose lock using /Users/adam/.npm/_locks/staging-9b558a35c3408069.lock for /private/tmp/dummy/node_modules/.staging
176 silly doParallel extract 104
177 silly extract [email protected]
178 silly extract [email protected]
179 silly extract [email protected]
180 silly extract [email protected]
181 silly extract [email protected]
182 silly extract [email protected]
183 silly extract [email protected]
184 silly extract [email protected]
185 silly extract [email protected]
186 silly extract [email protected]
187 silly extract [email protected]
188 silly extract [email protected]
189 silly extract [email protected]
190 silly doReverseSerial unbuild 104
191 silly doSerial remove 104
192 silly doSerial move 104
193 silly doSerial finalize 104
194 silly finalize /private/tmp/dummy/node_modules/d
195 silly finalize /private/tmp/dummy/node_modules/es6-symbol
196 silly finalize /private/tmp/dummy/node_modules/es6-iterator
197 silly finalize /private/tmp/dummy/node_modules/es6-weak-map
198 silly finalize /private/tmp/dummy/node_modules/mixto
199 silly finalize /private/tmp/dummy/node_modules/property-accessors
200 silly finalize /private/tmp/dummy/node_modules/underscore
201 silly finalize /private/tmp/dummy/node_modules/underscore-plus
202 silly finalize /private/tmp/dummy/node_modules/emissary
203 silly finalize /private/tmp/dummy/node_modules/grim
204 silly finalize /private/tmp/dummy/node_modules/event-kit
205 silly finalize /private/tmp/dummy/node_modules/nan
206 silly finalize /private/tmp/dummy/node_modules/keyboard-layout
207 silly doParallel refresh-package-json 104
208 silly refresh-package-json /private/tmp/dummy/node_modules/d
209 silly refresh-package-json /private/tmp/dummy/node_modules/es6-symbol
210 silly refresh-package-json /private/tmp/dummy/node_modules/es6-iterator
211 silly refresh-package-json /private/tmp/dummy/node_modules/es6-weak-map
212 silly refresh-package-json /private/tmp/dummy/node_modules/mixto
213 silly refresh-package-json /private/tmp/dummy/node_modules/property-accessors
214 silly refresh-package-json /private/tmp/dummy/node_modules/underscore
215 silly refresh-package-json /private/tmp/dummy/node_modules/underscore-plus
216 silly refresh-package-json /private/tmp/dummy/node_modules/emissary
217 silly refresh-package-json /private/tmp/dummy/node_modules/grim
218 silly refresh-package-json /private/tmp/dummy/node_modules/event-kit
219 silly refresh-package-json /private/tmp/dummy/node_modules/nan
220 silly refresh-package-json /private/tmp/dummy/node_modules/keyboard-layout
221 silly doParallel preinstall 104
222 silly preinstall [email protected]
223 info lifecycle [email protected]~preinstall: [email protected]
224 silly preinstall [email protected]
225 info lifecycle [email protected]~preinstall: [email protected]
226 silly preinstall [email protected]
227 info lifecycle [email protected]~preinstall: [email protected]
228 silly preinstall [email protected]
229 info lifecycle [email protected]~preinstall: [email protected]
230 silly preinstall [email protected]
231 info lifecycle [email protected]~preinstall: [email protected]
232 silly preinstall [email protected]
233 info lifecycle [email protected]~preinstall: [email protected]
234 silly preinstall [email protected]
235 info lifecycle [email protected]~preinstall: [email protected]
236 silly preinstall [email protected]
237 info lifecycle [email protected]~preinstall: [email protected]
238 silly preinstall [email protected]
239 info lifecycle [email protected]~preinstall: [email protected]
240 silly preinstall [email protected]
241 info lifecycle [email protected]~preinstall: [email protected]
242 silly preinstall [email protected]
243 info lifecycle [email protected]~preinstall: [email protected]
244 silly preinstall [email protected]
245 info lifecycle [email protected]~preinstall: [email protected]
246 silly preinstall [email protected]
247 info lifecycle [email protected]~preinstall: [email protected]
248 silly doSerial build 104
249 silly build [email protected]
250 info linkStuff [email protected]
251 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
252 verbose linkBins [email protected]
253 verbose linkMans [email protected]
254 silly build [email protected]
255 info linkStuff [email protected]
256 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
257 verbose linkBins [email protected]
258 verbose linkMans [email protected]
259 silly build [email protected]
260 info linkStuff [email protected]
261 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
262 verbose linkBins [email protected]
263 verbose linkMans [email protected]
264 silly build [email protected]
265 info linkStuff [email protected]
266 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
267 verbose linkBins [email protected]
268 verbose linkMans [email protected]
269 silly build [email protected]
270 info linkStuff [email protected]
271 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
272 verbose linkBins [email protected]
273 verbose linkMans [email protected]
274 silly build [email protected]
275 info linkStuff [email protected]
276 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
277 verbose linkBins [email protected]
278 verbose linkMans [email protected]
279 silly build [email protected]
280 info linkStuff [email protected]
281 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
282 verbose linkBins [email protected]
283 verbose linkMans [email protected]
284 silly build [email protected]
285 info linkStuff [email protected]
286 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
287 verbose linkBins [email protected]
288 verbose linkMans [email protected]
289 silly build [email protected]
290 info linkStuff [email protected]
291 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
292 verbose linkBins [email protected]
293 verbose linkMans [email protected]
294 silly build [email protected]
295 info linkStuff [email protected]
296 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
297 verbose linkBins [email protected]
298 verbose linkMans [email protected]
299 silly build [email protected]
300 info linkStuff [email protected]
301 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
302 verbose linkBins [email protected]
303 verbose linkMans [email protected]
304 silly build [email protected]
305 info linkStuff [email protected]
306 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
307 verbose linkBins [email protected]
308 verbose linkMans [email protected]
309 silly build [email protected]
310 info linkStuff [email protected]
311 silly linkStuff [email protected] has /private/tmp/dummy/node_modules as its parent node_modules
312 verbose linkBins [email protected]
313 verbose linkMans [email protected]
314 silly doSerial global-link 104
315 silly doParallel update-linked 104
316 silly doSerial install 104
317 silly install [email protected]
318 info lifecycle [email protected]~install: [email protected]
319 silly install [email protected]
320 info lifecycle [email protected]~install: [email protected]
321 silly install [email protected]
322 info lifecycle [email protected]~install: [email protected]
323 silly install [email protected]
324 info lifecycle [email protected]~install: [email protected]
325 silly install [email protected]
326 info lifecycle [email protected]~install: [email protected]
327 silly install [email protected]
328 info lifecycle [email protected]~install: [email protected]
329 silly install [email protected]
330 info lifecycle [email protected]~install: [email protected]
331 silly install [email protected]
332 info lifecycle [email protected]~install: [email protected]
333 silly install [email protected]
334 info lifecycle [email protected]~install: [email protected]
335 silly install [email protected]
336 info lifecycle [email protected]~install: [email protected]
337 silly install [email protected]
338 info lifecycle [email protected]~install: [email protected]
339 silly install [email protected]
340 info lifecycle [email protected]~install: [email protected]
341 silly install [email protected]
342 info lifecycle [email protected]~install: [email protected]
343 warn lifecycle The node binary used for scripts is /Users/adam/.asdf/shims/node but npm is using /Users/adam/.asdf/installs/nodejs/8.9.4/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
344 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
345 verbose lifecycle [email protected]~install: PATH: /Users/adam/.asdf/installs/nodejs/8.9.4/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/private/tmp/dummy/node_modules/keyboard-layout/node_modules/.bin:/private/tmp/dummy/node_modules/.bin:/Users/adam/.asdf/shims:/Users/adam/.asdf/bin:.git/safe/../../scripts:/Users/adam/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/Users/adam/.fzf/bin:/Users/adam/Code/go/bin:/usr/local/heroku/bin:/Users/adamyonk/.cargo/bin
346 verbose lifecycle [email protected]~install: CWD: /private/tmp/dummy/node_modules/keyboard-layout
347 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
348 info lifecycle [email protected]~install: Failed to exec install script
349 verbose unlock done using /Users/adam/.npm/_locks/staging-9b558a35c3408069.lock for /private/tmp/dummy/node_modules/.staging
350 silly saveTree [email protected]
350 silly saveTree └─┬ [email protected]
350 silly saveTree   ├─┬ [email protected]
350 silly saveTree   │ └─┬ [email protected]
350 silly saveTree   │   └─┬ [email protected]
350 silly saveTree   │     ├─┬ [email protected]
350 silly saveTree   │     │ ├─┬ [email protected]
350 silly saveTree   │     │ │ └─┬ [email protected]
350 silly saveTree   │     │ │   ├─┬ [email protected]
350 silly saveTree   │     │ │   │ ├── [email protected]
350 silly saveTree   │     │ │   │ └── [email protected]
350 silly saveTree   │     │ │   ├── [email protected]
350 silly saveTree   │     │ │   └── [email protected]
350 silly saveTree   │     │ ├── [email protected]
350 silly saveTree   │     │ ├─┬ [email protected]
350 silly saveTree   │     │ │ └── [email protected]
350 silly saveTree   │     │ └── [email protected]
350 silly saveTree   │     ├── [email protected]
350 silly saveTree   │     ├── [email protected]
350 silly saveTree   │     └─┬ [email protected]
350 silly saveTree   │       └── [email protected]
350 silly saveTree   └── [email protected]
351 warn [email protected] No description
352 warn [email protected] No repository field.
353 verbose stack Error: [email protected] install: `node-gyp rebuild`
353 verbose stack spawn ENOENT
353 verbose stack     at ChildProcess. (/Users/adam/.asdf/installs/nodejs/8.9.4/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
353 verbose stack     at emitTwo (events.js:126:13)
353 verbose stack     at ChildProcess.emit (events.js:214:7)
353 verbose stack     at maybeClose (internal/child_process.js:925:16)
353 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
354 verbose pkgid [email protected]
355 verbose cwd /private/tmp/dummy
356 verbose Darwin 17.6.0
357 verbose argv "/Users/adam/.asdf/installs/nodejs/8.9.4/bin/node" "/Users/adam/.asdf/installs/nodejs/8.9.4/bin/npm" "i" "[email protected]"
358 verbose node v8.9.4
359 verbose npm  v5.6.0
360 error file sh
361 error code ELIFECYCLE
362 error errno ENOENT
363 error syscall spawn
364 error [email protected] install: `node-gyp rebuild`
364 error spawn ENOENT
365 error Failed at the [email protected] install script.
365 error This is probably not a problem with npm. There is likely additional logging output above.
366 verbose exit [ 1, true ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions