volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
11.2k stars 238 forks source link

Installation breaks in WSL #1247

Open mrakelinggar opened 2 years ago

mrakelinggar commented 2 years ago

Tried installing volta with curl and bash on WSL (distro Ubuntu-22.04), but gzip says there is a syntax error, and two unknown objects not found.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12319  100 12319    0     0  24604      0 --:--:-- --:--:-- --:--:-- 24588
  Installing latest version of Volta (1.0.8)
    Checking for existing Volta installation
    Fetching archive for Linux, version 1.0.8
######################################################################## 100.0%
    Creating directory layout
  Extracting Volta binaries and launchers
/usr/bin/gzip: 1: ELF: not found
/usr/bin/gzip: 3: : not found
/usr/bin/gzip: 4: Syntax error: "(" unexpected
tar: Child returned status 2
tar: Error is not recoverable: exiting now
charlespierce commented 2 years ago

@mrakelinggar That's very odd! It's almost like the archive it's fetching is corrupted somehow. Is it possible you're behind a firewall or wifi hotspot that is injecting something into the requests? E.g. instead of serving the file we're trying to download, it's showing a "please log in" page, which then causes tar to fail to unpack since it's not an archive.

trallnag commented 2 years ago

Btw for me the installation on WSL2 within a Ubuntu-22.04 distro works flawlessly. So it's not a general issue with WSL2

pcfields commented 2 years ago

I got the same error on Ubuntu 22.04 with WSL2