Open
Description
Operating system and version:
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
nvm debug
output:
Trying to install latest = 0.39.3
nvm ls
output:
none ...Trying to install
How did you install nvm
?
following the readme
What steps did you perform?
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
What happened?
error, I'm behind an entreprise proxy... no option to pass a proxy in install script
What did you expect to happen?
Well, I expected to be able to install nvm
Is there anything in any of your profile files that modifies the PATH
?
no
Improved install command that worked for me (using proxy)
I propose a simple solution to correct the install script to work with proxy (only correcting curl and git, not wget... could be added)
export Proxy=http://my_enterprise_proxy:3128
curl --proxy $Proxy -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |sed -e 's/git /git -c "http.proxy=$Proxy" /g' -e 's/curl /curl --proxy $Proxy /g' |bash