You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
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.
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)
The text was updated successfully, but these errors were encountered: