Comments (9)
How does your code look?
from download.
Fixed in 4.1.2
.
from download.
Now it doesn't crash, but only got extracted the first one, the others are stored in compresed form, it's extrange...
from download.
deps/binutils:
binutils-2.24.tar.gz
deps/gcc:
gcc-4.7.3.tar.gz
deps/linux:
linux-4.0-rc5.tar.gz
deps/musl:
arch COPYRIGHT dist INSTALL Makefile src VERSION
configure crt include lib README tools WHATSNEW
from download.
This works fine for me so it must be something in your code.
new Download({extract: true, strip: 1})
.get('https://github.com/imagemin/mozjpeg-bin/archive/master.tar.gz', 'a')
.get('https://github.com/imagemin/optipng-bin/archive/master.tar.gz', 'b')
.run();
from download.
I will need to check it later but it's the same code as always, and it was decompressing it correctly before...
from download.
Disabling the usage of download-status
it decompress them correctly, but it crashed with an EACCESS error when it found the @Longlink
entry on gcc. I'll fill the issue on tar-stream (forgot to do it yesterday...)
from download.
from download.
Problem confirmed:
#!/usr/bin/env node
var Download = require('download');
var progress = require('download-status');
// Source versions
const NODEJS_VERSION = "v0.11.14"
// Source URLs
const NODEJS_URL="http://nodejs.org/dist/"+NODEJS_VERSION+"/node-"+NODEJS_VERSION+".tar.gz"
Download({ extract: true, strip: 1 })
.get(NODEJS_URL, 'deps/node')
//.use(progress())
.run(function(error)
{
if(error) throw error;
console.log('Download finished!');
})
When the line //.use(progress())
is commented, I get the next error as I notified in the tar-stream
issue:
/home/piranna/Proyectos/NodeOS/node_modules/nodeos-barebones/scripts/preinstall.js:24
if(error) throw error;
^
Error: EACCES, open '/home/piranna/Proyectos/NodeOS/node_modules/nodeos-barebones/deps/node/@LongLink'
at Error (native)
but when uncommented, the file don't get extracted and it's stored the compressed one, so there should be there a conflict.
from download.
Related Issues (20)
- Trst
- add already authorization but warn a message is Error: Basic authentication must be done with the `auth` option
- Upgrade to latest version of got for better stream handling HOT 2
- Download stop - no event fired
- filename has no effect if extract is enabled HOT 1
- Option to skip downloading if the file already exists HOT 7
- [node-downloader-helper] A very good alternative to this dead package HOT 4
- Knowing when decompress finished? Use `download().on('end', () => { }) ` to judge?
- High npm vulnerability HOT 2
- Open vunerability with the decompress package and decompress-tar
- Trying to get in touch regarding a security issue
- RangeError: Invalid string length with stream
- GotError [RequestError]: connect ETIMEOUT error to donwload pdf files
- High Vulnerability: Regular Expression Denial of Service in trim-newlines
- downloaded file has extension .gi instead of .gif HOT 1
- Npm audit failure via older version of got HOT 5
- Security Vulnerability: CVE-2022-33987 - got dependency HOT 1
- support ES Module HOT 1
- Progress bar and current % of download (useful for big files) HOT 5
- Replace got with fetch? HOT 2
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 download.