-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid distance too far back #22839
Comments
see RocketChat/Rocket.Chat#12024 too |
Downgrading from v10.9.0 to v8.11.4 fixed the issue. this is with:
|
ping @addaleax ... any ideas here? |
@nodejs/zlib |
@silenius Do you think you might be able to look at the file that decompression is failing on? Is this happening with every npm package you try to install? |
@addaleax : yes, it is happening with every package |
@silenius Are you behind a proxy? Can you check whether this only happens on FreeBSD or not? Do you think you might be able to look into what exactly the data is that is being passed to zlib here? |
@addaleax I'm not behind a proxy. I just tested on a freshly installed 11.2-RELEASE and it works as expected, so I think it only happens on FreeBSD <= 10.3. |
mmh apparently zlib has been upgraded in 10.4 (https://svnweb.freebsd.org/base?view=revision&revision=313796), so maybe it should work (unfortunately I don't have any 10.4 to test at the moment) |
@silenius I think there’s a good chance that this would be a fix, yes. You can also try compiling Node.js from source, I think? We ship our own copy of zlib in our main tarball, so that could be unaffected by whatever bug you’re hitting? |
I'm closing this issue as it works on "officially supported" FreeBSD releases (> 10.3).. thanks for your help and sorry for the noise (: |
I'm getting this on OpenSuse Leap 42.3. I have no idea what I'm doing and was just playing around with a default project created with |
The fix is to update your zlb. On Debian testing, as of now, 1.2.8 caused nodejs/npm to exhibit the fault while 1.2.11 did not. |
what do you mean by update zlib @smurfix ? doesn't it come as part of node itself? we're having this error and other random zlib errors regularly from node 11.9 on debian |
Debian dislikes vendorized libraries and uses the system's libraries wherever possible. In any case, I had that exact error last week and fixed it by changing nothing – except updating the system's zlib. |
Updating zlib was what worked for me. Thanks. |
How do I update zlib on a Synology? |
Yes... how? |
@Frenkie64 @paulsview If you don't want to install entware you can find I used |
I had this issue recently, but deleting |
Hello,
I'm getting a
invalid distance too far back
error message with npm/yarn (see yarnpkg/yarn#6357). It happens consistently and looks like a zlib error for corrupt data (?).The text was updated successfully, but these errors were encountered: