-
Notifications
You must be signed in to change notification settings - Fork 375
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
Process version undefined #529
Comments
This is happening if |
I'm also experiencing this issue while running with Cypress. adm-zip: 0.5.16 |
Unfortunately I've also encountered this issue, and have to use the following patch as a workaround:
diff --git a/node_modules/adm-zip/methods/inflater.js b/node_modules/adm-zip/methods/inflater.js
index 8769e66..a990c52 100644
--- a/node_modules/adm-zip/methods/inflater.js
+++ b/node_modules/adm-zip/methods/inflater.js
@@ -1,4 +1,4 @@
-const version = +(process.versions ? process.versions.node : "").split(".")[0] || 0;
+const version = +(process.versions ? process.versions.node ?? "" : "").split(".")[0] || 0;
module.exports = function (/*Buffer*/ inbuf, /*number*/ expectedLength) {
var zlib = require("zlib");
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I use this package in a Cypress cy.task to simply unzip.
After the 0.5.10 version the following code has an issue:
The process.versions is empty somehow in my case, so the process.versions.node is undefined.
The text was updated successfully, but these errors were encountered: