fnm icon indicating copy to clipboard operation
fnm copied to clipboard

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

Open vsergiu93 opened this issue 1 year ago โ€ข 3 comments

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

vsergiu93 avatar Oct 25 '23 17:10 vsergiu93

@vsergiu93 getting same error

jerkovicl avatar Oct 27 '23 14:10 jerkovicl

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 ๐Ÿ™

Schniz avatar Oct 27 '23 14:10 Schniz

@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! ๐Ÿ™

vsergiu93 avatar Oct 27 '23 22:10 vsergiu93