Skip to content
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

Failed to extract .tar.xz file on macOS, Archive Utility succesfully extracts it #110

Open
quinton-ashley opened this issue Sep 27, 2020 · 4 comments

Comments

@quinton-ashley
Copy link

Here's the file, I zipped it to upload it on Github.
pkg.tar.xz.zip

Uncaught (in promise) Error: end of central directory record signature not found
at /Users/qashto/dev/apps/nostlan/node_modules/yauzl/index.js:187
at /Users/qashto/dev/apps/nostlan/node_modules/yauzl/index.js:631
at /Users/qashto/dev/apps/nostlan/node_modules/fd-slicer/index.js:32
at FSReqCallback.wrapper [as oncomplete] (fs.js:470)

@lijialiang
Copy link

I have the same problem :(

@rserrano-eSW
Copy link

This was happening to me because i was not closing the file.
I am downloading a file, saving it to a temporary file, then extracting it. Sound like i was not closing the file after the save, so this error was occurring.

check if its the same problem you guys have....

my 2 cents

@fishcharlie
Copy link

@rserrano-eSW How did you close the file? Can you be more specific here?

@d-neri
Copy link

d-neri commented May 24, 2022

I had the same issue using https.get and piping that to a write stream. After switching to the request library instead extract-zip happily extracted things without a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants