nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curl Error

nirgranth opened this issue · comments

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16555 100 16555 0 0 158k 0 --:--:-- --:--:-- --:--:-- 161k
=> Downloading nvm from git to '/home/nirgr/.nvm'
=> Cloning into '/home/nirgr/.nvm'...
remote: Enumerating objects: 365, done.
remote: Counting objects: 100% (365/365), done.
remote: Compressing objects: 100% (313/313), done.
remote: Total 365 (delta 43), reused 167 (delta 26), pack-reused 0
Receiving objects: 100% (365/365), 365.08 KiB | 1.43 MiB/s, done.
Resolving deltas: 100% (43/43), done.
remote: Enumerating objects: 366, done.
remote: Counting objects: 100% (366/366), done.
remote: Compressing objects: 100% (315/315), done.
remote: Total 366 (delta 43), reused 162 (delta 25), pack-reused 0
Receiving objects: 100% (366/366), 365.79 KiB | 896.00 KiB/s, done.
Resolving deltas: 100% (43/43), done.
fatal: bad object cdc56687ada0c47f97632b0049b0446aadbe3a3a
error: remote did not send all necessary objects
Failed to fetch origin with v0.39.7. Please report this!

What happens if you try to git clone the nvm repo?

git clone https://github.com/nvm-sh/nvm.git
Cloning into 'nvm'...
remote: Enumerating objects: 9308, done.
remote: Counting objects: 100% (2109/2109), done.
remote: Compressing objects: 100% (227/227), done.
remote: Total 9308 (delta 1993), reused 1916 (delta 1881), pack-reused 7199
Receiving objects: 100% (9308/9308), 3.59 MiB | 8.18 MiB/s, done.
Resolving deltas: 100% (5985/5985), done.

hmm - i wonder if it's a github fluke. Can you delete that cloned repo, and then rerun the install script?

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16555 100 16555 0 0 146k 0 --:--:-- --:--:-- --:--:-- 146k
=> Downloading nvm from git to '/home/nirgr/.nvm'
=> fatal: destination path '/home/nirgr/.nvm' already exists and is not an empty directory.
Failed to clone nvm repo. Please report this!

rm -rf /home/nirgr/.nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16555 100 16555 0 0 150k 0 --:--:-- --:--:-- --:--:-- 153k
=> Downloading nvm from git to '/home/nirgr/.nvm'
=> fatal: destination path '/home/nirgr/.nvm' already exists and is not an empty directory.
Failed to clone nvm repo. Please report this!

hmm, that's very strange. can you confirm that the removal worked?

can you confirm that you have full ownership of your own home directory, and that it's on a disk that's writable and not full?

environment issue

hmm, that's very strange. can you confirm that the removal worked?

can you confirm that you have full ownership of your own home directory, and that it's on a disk that's writable and not full?

yes

glad you figured it out! what was the environment issue?

since i was emulating linux
it had missing dependencies

getting nvm on windows and using that in the wsl works