<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 5 juin 2019 à 18:15, Hubert Chathi <<a href="mailto:hubert@uhoreg.ca">hubert@uhoreg.ca</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">Package: nodejs<br>
Version: 10.15.2~dfsg-2<br>
Severity: important<br>
<br>
When using nodejs 10.15.2, yarnpkg is unable to copy files to install<br>
dependencies. eg:<br>
<br>
~/tmp$ mkdir foo<br>
~/tmp$ cd foo/<br>
~/tmp/foo$ yarnpkg init<br>
yarn init v1.13.0<br>
question name (foo): <br>
question version (1.0.0): <br>
question description: <br>
question entry point (index.js): <br>
question repository url: <br>
question author: <br>
question license (MIT): <br>
question private: <br>
success Saved package.json<br>
Done in 14.00s.<br>
~/tmp/foo $ yarnpkg add leftpad<br>
yarn add v1.13.0<br>
info No lockfile found.<br>
[1/4] Resolving packages...<br>
warning leftpad@0.0.1: Use the built-in String.padStart function instead<br>
[2/4] Fetching packages...<br>
[3/4] Linking dependencies...<br>
error An unexpected error occurred: "EINVAL: invalid argument, copyfile '/home/hubert/.cache/yarn/v4/npm-leftpad-0.0.1-86b1a4de4face180ac545a83f1503523d8fed115/node_modules/leftpad/CHANGELOG.md' -> '/home/hubert/tmp/foo/node_modules/leftpad/CHANGELOG.md'".<br>
info If you think this is a bug, please open a bug report with the information provided in "/home/hubert/tmp/foo/yarn-error.log".<br>
info Visit <a href="https://yarnpkg.com/en/docs/cli/add" rel="noreferrer" target="_blank">https://yarnpkg.com/en/docs/cli/add</a> for documentation about this command.<br>
<br>
It works correctly with nodejs 8.11.1 from stretch-backports, hence<br>
filing this issue against nodejs rather than yarnpkg. (But FWIW, the<br>
yarnpkg version is 1.13.0-1).<br>
<br>
The yarn-error.log doesn't seem to include any useful information, but<br>
I've attached it for completeness.<br>
<br>
-- System Information:<br>
Debian Release: 9.9<br></blockquote><div><br></div><div>I can't reproduce on debian 10 a.k.a. Buster, which is the version of debian</div><div>that distributes nodejs 10.15.2.</div><div>Also there is no backport available (that i know of) on debian 9.9.</div><div>I would also like to point out that if you found a bug installing a node module,</div><div>the bug it probably in either of:</div><div>- the node module itself</div><div>- node-gyp if the module is an addon</div><div>- yarnpkg, npm</div><div><br></div><div>Jérémy</div><div><br></div></div></div>