-
Notifications
You must be signed in to change notification settings - Fork 127
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
Not working with Node 14 #94
Comments
Can confirm, it's silently breaking puppeteer install script on node 14+win10 at least. |
Will probably be fixed by nodejs/node#32968 A change in Node's stream behavior caused several stream based libs to break, including tar-stream. Wouldn't surprise me if this is the same issue. |
I pulled the Node's PR and built it locally, unfortunately the tests are still failing... |
I'm not quite familiar with this library. Could someone write a full repro example and I will take a look asap. |
All extract-zip tests succeed. Do you think you could make a failing test which we can use to resolve this? |
This works on Node master: const extract = require('./index')
async function main() {
try {
await extract('./Archive.zip', { dir: '/Users/ronagy/GitHub/public/extract-zip/sasd' })
console.log('Extraction complete')
} catch (err) {
console.error(err)
// handle any errors
}
}
main() |
I believe this might have been fixed through nodejs/node#32967 |
@ronag that's not what I see. Using Node.js 14.0.0, running
Because of some engine restrictions when using Node 15 nightly with yarn, the exact command I type to test the PR you mentioned is Anyway, I believe Michaël came up with a probably simpler repro on the other thread. |
So the problem here is that |
The fix has been merged on Node.js repo, I can confirm extract-zip's tests are now passing. I believe we can close this issue as soon as Node.js 14.1.0 is released. |
Just tested it on Node.js 14.1.0 and it is fixed. |
It seems that this library is not working with Node.js 14, that just came out. It seems that Node.js crashes exactly at this line (
stream.pipline
):https://github.com/maxogden/extract-zip/blob/eb3c1edb8481bbf68da05cd3a824b1dcc697f908/index.js#L135
I am not sure if they changed something, and this is a breaking change and something needs to be updated on
extract-zip
, or if this is a bug on Node.js 14, that just came out. Anyway, it is breaking, and the issue is here.The text was updated successfully, but these errors were encountered: