gemini-testing / png-img

Lite libpng wrapper for node.js
MIT License
29 stars 13 forks source link

xdg-open ENOENT #41

Closed maxvipon closed 4 years ago

maxvipon commented 6 years ago
make: *** [Release/obj.target/png_img/src/init.o] Error 1
make: Leaving directory `/drone/src/github.mydomain.com/myproject/node_modules/png-img/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/nodejs/7/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.19.0-80-generic
gyp ERR! command "/opt/nodejs/7/bin/node" "/opt/nodejs/7/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /drone/src/github.mydomain.com/myproject/node_modules/png-img
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
npm ERR! Linux 3.19.0-80-generic
npm ERR! argv "/opt/nodejs/7/bin/node" "/usr/bin/npm" "install" "--only=dev"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! png-img@2.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the png-img@2.2.0 install script 'node-gyp rebuild'

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ '/opt/nodejs/7/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'bugs',
1 verbose cli   'png-img' ]
2 info using npm@4.2.0
3 info using node@v7.10.0
4 silly fetchPackageMetaData png-img
5 silly fetchNamedPackageData png-img
6 silly mapToRegistry name png-img
7 silly mapToRegistry using default registry
8 silly mapToRegistry registry http://npm.mydomain.com/
9 silly mapToRegistry data Result {
9 silly mapToRegistry   raw: 'png-img',
9 silly mapToRegistry   scope: null,
9 silly mapToRegistry   escapedName: 'png-img',
9 silly mapToRegistry   name: 'png-img',
9 silly mapToRegistry   rawSpec: '',
9 silly mapToRegistry   spec: 'latest',
9 silly mapToRegistry   type: 'tag' }
10 silly mapToRegistry uri http://npm.mydomain.com/png-img
11 verbose request uri http://npm.mydomain.com/png-img
12 verbose request no auth needed
13 info attempt registry request try #1 at 11:27:55 AM
14 verbose request id 402b498be069f4c9
15 http request GET http://npm.mydomain.com/png-img
16 http 200 http://npm.mydomain.com/png-img
17 verbose headers { server: 'nginx',
17 verbose headers   date: 'Fri, 07 Sep 2018 08:27:55 GMT',
17 verbose headers   'content-type': 'application/json; charset=UTF-8',
17 verbose headers   'transfer-encoding': 'chunked',
17 verbose headers   connection: 'keep-alive',
17 verbose headers   etag: 'W/"0cbb6db839fa1430d3db4dd4ea5dbf05bf9f0172"',
17 verbose headers   'content-encoding': 'gzip' }
18 silly get cb [ 200,
18 silly get   { server: 'nginx',
18 silly get     date: 'Fri, 07 Sep 2018 08:27:55 GMT',
18 silly get     'content-type': 'application/json; charset=UTF-8',
18 silly get     'transfer-encoding': 'chunked',
18 silly get     connection: 'keep-alive',
18 silly get     etag: 'W/"0cbb6db839fa1430d3db4dd4ea5dbf05bf9f0172"',
18 silly get     'content-encoding': 'gzip' } ]
19 verbose get saving png-img to /home/user/.npm/npm.mydomain.com/png-img/.cache.json
20 verbose correctMkdir /home/user/.npm correctMkdir not in flight; initializing
21 silly bugs url https://github.com/gemini-testing/png-img/issues
22 verbose stack Error: spawn xdg-open ENOENT
22 verbose stack     at exports._errnoException (util.js:1029:11)
22 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
22 verbose stack     at onErrorNT (internal/child_process.js:367:16)
22 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:80:11)
22 verbose stack     at process._tickCallback (internal/process/next_tick.js:104:9)
23 verbose cwd /home/user/www/myproject
24 error Linux 3.19.0-80-generic
25 error argv "/opt/nodejs/7/bin/node" "/usr/bin/npm" "bugs" "png-img"
26 error node v7.10.0
27 error npm  v4.2.0
28 error path xdg-open
29 error code ENOENT
30 error errno ENOENT
31 error syscall spawn xdg-open
32 error enoent spawn xdg-open ENOENT
33 error enoent spawn xdg-open ENOENT
33 error enoent This is most likely not a problem with npm itself
33 error enoent and is related to npm not being able to find a file.
34 verbose exit [ 1, true ]
j0tunn commented 6 years ago

На других версиях node&npm воспроизводится? node@8 и npm@6, например?

maxvipon commented 6 years ago

Не проверял, т.к. прод и CI на этих версиях зафрижены в данный момент.

j0tunn commented 5 years ago

Не могу воспроизвести. Похоже на проблемы с окружением. Насколько часто стреляет?