Cannot Install nvm on ubuntu
ANUJSP25 opened this issue · comments
Operating system and version:
Ubuntu 22.04.1
nvm debug
output:
nvm ls
output:
How did you install nvm
?
What steps did you perform?
I just ran this line of code "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash"
What happened?
I got this error after the timer stopped and nothing was downloaded
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:10 --:--:-- 0
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 130204 ms: Connection timed out
What did you expect to happen?
I expected that it would install nvm
Is there anything in any of your profile files that modifies the PATH
?
I'm not sure...
If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/
print out?
<
- Connection #0 to host nodejs.org left intact
This looks like you're having difficulty connecting to github - if you can't download the install script then certainly nothing will install.
Can you try curl -I --compressed -v https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh
as well?
I tried this "curl -I --compressed -v https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh" today but still I'm getting these errors,
curl -I --compressed -v https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh
- Trying 49.44.79.236:443...
- Trying 2405:200:1607:2820:41::36:443...
- Immediate connect fail for 2405:200:1607:2820:41::36: Network is unreachable
- connect to 49.44.79.236 port 443 failed: Connection timed out
- Failed to connect to raw.githubusercontent.com port 443 after 133746 ms: Connection timed out
- Closing connection 0
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 133746 ms: Connection timed out
Seems like your internet connection has some issues. It could be your workplace/school, your ISP, or your government, but this isn't really something I can help you debug, unfortunately.
Same issue basically.
root@husky:~# curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15916 100 15916 0 0 109k 0 --:--:-- --:--:-- --:--:-- 109k
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
error: git-remote-https died of signal 4
Failed to clone nvm repo. Please report this!
root@husky:~#
It's 22.04 as-well.
@Itz-Hyperz same comment to you - can you clone the nvm repo by itself?
Hey there, I was too unable to clone and install nvm in my device. It seems like a government thing. The address is blocked all together. I used vpn and was able to install nvm properly. Let me know if it works for you too. 👍🏼
I agree that's likely what it is, so I'm going to close this. I believe India has recently blocked githubusercontent.com, so I'd suggest a vpn, or advocating to your government, if this affects you.