[Pkg-javascript-devel] Bug#921625: Bug#921625: node-gyp install fails

Jérémy Lal kapouer at melix.org
Sat Mar 2 17:51:07 GMT 2019


Le sam. 2 mars 2019 à 18:21, Paolo Greppi <paolo.greppi at libpf.com> a écrit :

> I got the same error on amd64 while running yarnpkg in root of vscode
> source:
>
> git clone https://github.com/Microsoft/vscode
> cd vscode
> yarnpkg
> ...
> [4/4] Building fresh packages...
> [1/14] ⠠ gc-signals
> [2/14] ⠠ keytar
> [3/14] ⠠ native-is-elevated
> [4/14] ⠐ native-keymap
> error /root/vscode/node_modules/gc-signals: Command failed.
> Exit code: 7
> Command: node-gyp rebuild
> Arguments:
> Directory: /root/vscode/node_modules/gc-signals
> Output:
> gyp info it worked if it ends with ok
> gyp info using node-gyp at 3.8.0
> gyp info using node at 10.15.1 | linux | x64
> gyp http GET
> https://atom.io/download/electron/v3.1.3/iojs-v3.1.3-headers.tar.gz
> gyp http 200
> https://atom.io/download/electron/v3.1.3/iojs-v3.1.3-headers.tar.gz
> gyp ERR! UNCAUGHT EXCEPTION
> gyp ERR! stack TypeError: Cannot read property 'substring' of undefined
> gyp ERR! stack     at Unpack.isValid [as filter]
> (/usr/share/node-gyp/lib/install.js:160:30)
> gyp ERR! stack     at Unpack.[consumeHeader]
> (/usr/lib/nodejs/tar/lib/parse.js:134:48)
> gyp ERR! stack     at Unpack.[consumeChunkSub]
> (/usr/lib/nodejs/tar/lib/parse.js:385:30)
> gyp ERR! stack     at Unpack.[consumeChunk]
> (/usr/lib/nodejs/tar/lib/parse.js:362:30)
> gyp ERR! stack     at Unpack.write
> (/usr/lib/nodejs/tar/lib/parse.js:309:25)
> gyp ERR! stack     at Gunzip.ondata (_stream_readable.js:667:20)
> gyp ERR! stack     at Gunzip.emit (events.js:189:13)
> gyp ERR! stack     at addChunk (_stream_readable.js:284:12)
> gyp ERR! stack     at readableAddChunk (_stream_readable.js:265:11)
> gyp ERR! stack     at Gunzip.Readable.push (_stream_readable.js:220:10)
> gyp ERR! System Linux 4.19.0-2-amd64
> gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
> gyp ERR! cwd /root/vscode/node_modules/gc-signals
> gyp ERR! node -v v10.15.1
> gyp ERR! node-gyp -v v3.8.0
>
> The strange thing is that if I cd /root/vscode/node_modules/gc-signals
> then:
> node-gyp rebuild
>
> it works fine.
>

There is indeed an issue here:
upstream node-gyp did not merge
https://github.com/nodejs/node-gyp/commit/5f924ce62c9bca9ab9c2e547bfb87b9a391271ed
into node-gyp branch 3.8, and thus is not compatible with node-tar 4.

Am going to fix that asap.

Jérémy


> Paolo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190302/7881d6c7/attachment.html>


More information about the Pkg-javascript-devel mailing list