Skip to content

node-build fails using aria2c to download the tarball #777

@jgnieuwhof

Description

@jgnieuwhof

Installations have consistently been failing on my Linux machine, Ubuntu 22.04.1, as follows:

Downloading node-v16.15.0-linux-x64.tar.gz...
-> https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.gz
error: failed to download node-v16.15.0-linux-x64.tar.gz
-> https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.gz
error: failed to download node-v16.15.0-linux-x64.tar.gz

BUILD FAILED (Ubuntu 22.04 using node-build 4.9.92)

Binary installation failed; try compiling from source with `--compile` flag

I verified that the URL is correct, it is. I then noticed in the source code that aria2c is the preferred HTTP client:

I uninstalled aria2c, and installation succeeded (presumably using curl):

Downloading node-v16.15.0-linux-x64.tar.gz...
-> https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.gz
Installing node-v16.15.0-linux-x64...
Installed node-v16.15.0-linux-x64 to /home/jgnieuwhof/.asdf/installs/nodejs/16.15.0

Don't know why.

Has this been seen before? Is there a reason why aria2c is the preferred client over curl or wget?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions