-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection errors #520
Comments
@SharakPL I had the same issue using termux android 12. I downloaded the linux binary from daily releases and installed manually
Gave me
Curl was successful hitting https://nodejs.org/dist/index.json from termux. I was able to get this working with a little tweak. Disclaimer: I am not a rust developer so there may be a better way to do this that's not so monkey patched.
And
@Schniz not sure if any of this helps. I'm not super familiar with rust so I sorta hacked the solution to the problem. Let me know if you have any questions about this. |
same issue Update |
I don't have any Android devices. What OS arch is it? maybe there's a feature flag we need to provide by default? Another build pipeline in CI? |
I am also having the same issue @donaldxdonald is having. System: WSL, Ubuntu 20.04 if I wget the urls it is timing out on, it downloads the files fine, e.g. fnm list-remote
error: error sending request for url (https://nodejs.org/dist/index.json): operation timed out |
If you use the patch by @nickjwilde it will successfully download node but the version it downloads will fail to run. To get it to work would require downloading node built specifically for Android, for which there are currently no official builds. Supporting android would thus also require either hosting node pre-built for android, or building node from source. Also, if you want to use the correct cfg in that patch so it looks for the correct pre-built you would add #[cfg(target_os = "android")]
pub fn platform_name() -> &'static str {
"android"
} My tests were from termux
|
@Schniz, I have this exact error when trying to install node in termux android. My android is From termux with zsh shell: % uname -m
aarch64 Running |
I have this issue on fish in wsl2 ubuntu as well when trying to download x64 node versions... |
I actually had this issue as well on Windows 10, but due to some non-related circumstances I've since updated to Windows 11 and for some reason I was able to use I'm not suggesting this as a solution, there is clearly something wrong with fnm on Windows 10 w/ wsl2. Just so that |
still having this issue |
Same issue here. I am on WSL 2, Ubuntu 22.10, installed fnm with the standard script installation. curl'ing the url that time out for fnm works fine. |
Redoing Schniz#389 which was cancelled by Schniz#554 and reintroduced the error. Fixes Schniz#520
The No idea why musl make it fail but I think compiling for musl is wrong (not needed and not well supported). #882 Should fix this issue |
This is still happening for me. (cURLing the URL for node distributions works) Version: fnm 1.33.1
|
Who have solved this issue on termux running on Android 10? Still have this error "error: error sending request for url (https://nodejs.org/dist/index.json): error trying to connect: dns error: failed to lookup address information: Try again" when I type |
Same issue happening with Windows Powershell (v6) |
I have solved it, but I don't know whether it woks for everyone. Installing fnm by |
Same issue on Arch, just installed fnm-bin from AUR ... ✖ fnm --version
fnm 1.37.1
✖ fnm list-remote
error: error sending request for url (https://nodejs.org/dist/index.json)
✖ fnm install '20.17.0'
Installing Node v20.17.0 (x64)
error: Can't download the requested binary: error sending request for url (https://nodejs.org/dist/v20.17.0/node-v20.17.0-linux-x64.tar.xz) Edit: fnm from AUR built locally actually works |
same with me today, i cannot install a node version |
same issue |
2 similar comments
same issue |
same issue |
Still same error 3 years later at 1.37.2 version. |
I raised issue for the similar issue in ubuntu server which is trying to use proxy but fnm not able to connect I am getting It would be good if we can have option that will allow user to pass proxy through command line argument as well |
Same issue |
Maybe it uses wrong protocol or something.
curl https://nodejs.org/dist/index.json
got the output right away.Installed on Termux (Android 11). Shell: zsh
The text was updated successfully, but these errors were encountered: