Schniz / fnm

🚀 Fast and simple Node.js version manager, built in Rust
https://fnm.vercel.app
GNU General Public License v3.0
17.42k stars 441 forks source link

Operation timed out while attempting to install new node version or listing remote versions #1064

Open vsergiu93 opened 10 months ago

vsergiu93 commented 10 months ago

I attempted to install the new lts version 20.9.0 and I get the following error: error: Can't download the requested binary: error sending request for url (https://nodejs.org/dist/v20.9.0/node-v20.9.0-linux-x64.tar.xz): operation timed out

It could be that is something on my end, but not sure where should I start looking. I can ping from wsl2 the nodejs.org domain, I can also do a curl https://nodejs.org/dist/v20.9.0/node-v20.9.0-linux-x64.tar.xz --output my.tar.xz which successfully downloads the file.

Any ideas on what to check?

Environment: WSL2, Windows 11, fnm 1.35.0

jerkovicl commented 10 months ago

@vsergiu93 getting same error

Schniz commented 10 months ago

Can’t reproduce and frankly have no time to do that because we’re in a war and I’m in reserve days. Feel free to clone and play with it and help us all by fixing it 🙏

vsergiu93 commented 10 months ago

@jerkovicl I somehow managed to make it work. Basically I cloned the repo and followed the steps to build it locally after that I just tested the fnm ls-remote which worked, so all that was left to was to replace the orginal fnm executable with the one I just build and now is working. Unfortunately I have no idea why this worked for me, and also still not sure what is the source of this problem :(.

@Schniz Thank you for this tool and for taking the time to respond, even with everything going on. As I wrote above, I managed to make it work for me, but, I don't understand why now is working after doing the steps I described above. Basically I just cloned the project and compiled it locally in wsl. I'll try to look over the codebase, but not sure if I'll managed to understand what is happening, If I do manage to find some solution I'll open a PR. Stay safe and take care! 🙏