GithubHelp home page GithubHelp logo

Comments (9)

kevva avatar kevva commented on May 11, 2024

How does your code look?

from download.

kevva avatar kevva commented on May 11, 2024

Fixed in 4.1.2.

from download.

piranna avatar piranna commented on May 11, 2024

Now it doesn't crash, but only got extracted the first one, the others are stored in compresed form, it's extrange...

from download.

piranna avatar piranna commented on May 11, 2024
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.

kevva avatar kevva commented on May 11, 2024

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.

piranna avatar piranna commented on May 11, 2024

I will need to check it later but it's the same code as always, and it was decompressing it correctly before...

from download.

piranna avatar piranna commented on May 11, 2024

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.

piranna avatar piranna commented on May 11, 2024

mafintosh/tar-stream#35

from download.

piranna avatar piranna commented on May 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.