<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 2 mars 2019 à 18:21, Paolo Greppi <<a href="mailto:paolo.greppi@libpf.com">paolo.greppi@libpf.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I got the same error on amd64 while running yarnpkg in root of vscode source:<br>
<br>
git clone <a href="https://github.com/Microsoft/vscode" rel="noreferrer" target="_blank">https://github.com/Microsoft/vscode</a><br>
cd vscode<br>
yarnpkg<br>
...<br>
[4/4] Building fresh packages...<br>
[1/14] ⠠ gc-signals<br>
[2/14] ⠠ keytar<br>
[3/14] ⠠ native-is-elevated<br>
[4/14] ⠐ native-keymap<br>
error /root/vscode/node_modules/gc-signals: Command failed.<br>
Exit code: 7<br>
Command: node-gyp rebuild<br>
Arguments:<br>
Directory: /root/vscode/node_modules/gc-signals<br>
Output:<br>
gyp info it worked if it ends with ok<br>
gyp info using node-gyp@3.8.0<br>
gyp info using node@10.15.1 | linux | x64<br>
gyp http GET <a href="https://atom.io/download/electron/v3.1.3/iojs-v3.1.3-headers.tar.gz" rel="noreferrer" target="_blank">https://atom.io/download/electron/v3.1.3/iojs-v3.1.3-headers.tar.gz</a><br>
gyp http 200 <a href="https://atom.io/download/electron/v3.1.3/iojs-v3.1.3-headers.tar.gz" rel="noreferrer" target="_blank">https://atom.io/download/electron/v3.1.3/iojs-v3.1.3-headers.tar.gz</a><br>
gyp ERR! UNCAUGHT EXCEPTION<br>
gyp ERR! stack TypeError: Cannot read property 'substring' of undefined<br>
gyp ERR! stack     at Unpack.isValid [as filter] (/usr/share/node-gyp/lib/install.js:160:30)<br>
gyp ERR! stack     at Unpack.[consumeHeader] (/usr/lib/nodejs/tar/lib/parse.js:134:48)<br>
gyp ERR! stack     at Unpack.[consumeChunkSub] (/usr/lib/nodejs/tar/lib/parse.js:385:30)<br>
gyp ERR! stack     at Unpack.[consumeChunk] (/usr/lib/nodejs/tar/lib/parse.js:362:30)<br>
gyp ERR! stack     at Unpack.write (/usr/lib/nodejs/tar/lib/parse.js:309:25)<br>
gyp ERR! stack     at Gunzip.ondata (_stream_readable.js:667:20)<br>
gyp ERR! stack     at Gunzip.emit (events.js:189:13)<br>
gyp ERR! stack     at addChunk (_stream_readable.js:284:12)<br>
gyp ERR! stack     at readableAddChunk (_stream_readable.js:265:11)<br>
gyp ERR! stack     at Gunzip.Readable.push (_stream_readable.js:220:10)<br>
gyp ERR! System Linux 4.19.0-2-amd64<br>
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"<br>
gyp ERR! cwd /root/vscode/node_modules/gc-signals<br>
gyp ERR! node -v v10.15.1<br>
gyp ERR! node-gyp -v v3.8.0<br>
<br>
The strange thing is that if I cd /root/vscode/node_modules/gc-signals then:<br>
node-gyp rebuild<br>
<br>
it works fine.<br></blockquote><div><br></div><div>There is indeed an issue here:</div><div>upstream node-gyp did not merge</div><div><a href="https://github.com/nodejs/node-gyp/commit/5f924ce62c9bca9ab9c2e547bfb87b9a391271ed">https://github.com/nodejs/node-gyp/commit/5f924ce62c9bca9ab9c2e547bfb87b9a391271ed</a></div><div>into node-gyp branch 3.8, and thus is not compatible with node-tar 4.</div><div><br></div><div>Am going to fix that asap.</div><div><br></div><div>Jérémy</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Paolo<br>
<br>
</blockquote></div></div></div>