jorgebucaran / nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
https://git.io/nvm.fish
MIT License
2.06k stars 69 forks source link

Issue installing packages behind proxy #180

Closed yutsuo closed 2 years ago

yutsuo commented 2 years ago

OS Ubuntu 21.10 nvm fish version 2.2.7

Can't install npm packages behind a corporate proxy:

nvm install 17

Installing Node v17.8.0 latest
Fetching https://nodejs.org/dist/v17.8.0/node-v17.8.0-linux-x64.tar.gz
curl: (52) Empty reply from server                                      #       #      #     #               
nvm: Invalid mirror or host unavailable: "https://nodejs.org/dist/v17.8.0/node-v17.8.0-linux-x64.tar.gz"

curl is correctly configured to use proxy.

list-remote option works.

Thought it could be something to do with the proxy config, but then I changed to nvm in bash using same config and installation works normally.

jorgebucaran commented 2 years ago

What did you expect would happen exactly? What should we do?

yutsuo commented 2 years ago

In that case I expected nvm-fish to complete the installation of Node v17.8.0

Because bash nvm worked under the same conditions I'm curious about why nvm-fish behaved differently.

Didn't find an issue about it so I opened this one to make it known.

I will try to investigate the cause.

jorgebucaran commented 2 years ago

Closing as stale. No one else has reported this issue, and I see nothing actionable here for now. If you do find out what was causing trouble, do let us know @yutsuo! 🙏