Comments (5)
Hey all,
Together with @Fatme we have investigated this case further and it turns out the problem is caused by our npm-shrinkwrap.json (same will happen in case you use package-lock.json). So, what is the problem - unzip
package depends on fstream
package. It has a dependency on graceful-fs
version 3.0.11. As you can see here this version of graceful-fs depends on the natives
package by using ^1.1.0
. In our case, in npm-shrinkwrap.json we had the version of natives
set to 1.1.2. However, there's a newer version of the natives
package that addresses the issue with Node.js 10.x.x - 1.1.3: https://github.com/addaleax/natives/commits/v1.1.3
So the solution for us was to:
- Delete node_modules
- Delete npm-shrinkwrap.json (in your case it might be package-lock.json)
- Execute
npm i
- Execute
npm shrinkwrap
from node-unzip.
Are you sure this is not a problem with your test file? I ran the test suite of unzip
on the node 10.0.0 docker image and all the tests passed? Can you share the test.js
from node-unzip.
Hi @ZJONSSON
I've created a repro project
https://github.com/Fatme/unzip-node10
Steps to reproduce:
git clone [email protected]:Fatme/unzip-node10.git
- cd unzip-node10
- npm install
- node index.js
NOTE: I've tested it on Mac OS High Sierra
from node-unzip.
I can confirm the issue is reproducible on windows too. I tested it on windows 10.
Tested with this: https://nodejs.org/en/download/current/
from node-unzip.
I can also confirm that this package does not seem to work on nodejs v10.0.0 and I get the same error as @Fatme. Another way to reproduce it is to open the Node repl and type require("unzip")
. I use unzip version 0.1.11.
from node-unzip.
Related Issues (20)
- enhancement: Set option for deletion
- `me.error` is not a function HOT 1
- Error: invalid signature: 0x6064b50 HOT 2
- When using with typescript,the process may crash HOT 1
- Pipe signature on Entry
- Error: invalid signature: 0x70a4935 HOT 1
- Please remove dependency on 'natives HOT 5
- Don't use under electron-main HOT 3
- extracted files corrupted HOT 1
- folder as file HOT 1
- DO NOT USE THIS THING HOT 8
- Not working with Node 12, primordials is not defined HOT 4
- Mode not preserved with Extract
- Update fstream to a secure version HOT 5
- Any way to pass in arguments like -j or -d from normal unzip?
- Dependency needs updating
- How to stop decompressing zip?
- primordials HOT 2
- unzipper.Parse doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-unzip.