-
Notifications
You must be signed in to change notification settings - Fork 146
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
Unable to install node >= 18.12.0 versions #344
Comments
We're seeing the same thing. |
Can you guys check if it is related to nodenv/node-build#777? I'm unable to test on an M1 MacOS. If someone is able to do some debugging please share on this post |
There was a problem with intermittent 404s affecting downloads from nodejs, which is hopefully largely resolved: |
Thanks for the information, @shadowspawn! That could be it But I find it strange that only Apple Silicon versions are being affected, and running asdf on Rosetta solves the issue. I will let the issue open while we don't confirm that the problem is purely on NodeJS servers. @jtlimo @anthonator please try downloading that version later after NodeJS update its status as fixed, and confirm if that was the problem |
Seems to be working for me. |
I tried here and the problem continue |
Had trouble with this yesterday due to the 404s. appears to have resolved itself now. no need to use --compile anymore, i think |
I tried again, and nothing changed. 😢 |
I'm seeing this as well, not sure if its related exactly, but I run these commands: > asdf latest nodejs
> 19.8.1
> asdf install nodejs 19.18.1
> Trying to update node-build... ok
> node-build: definition not found: 19.18.1 |
What's going on? |
There is a typo on your installation command. The latest version is Again, I cannot reproduce the issue on Linux. If someone else is having this problem on macOS, I would ask to debug it if possible or to provide more information on what could be happening. @jtlimo, is the issue still happening? Did you try updating both asdf update
asdf plugin update --all |
My case was also related to #299 which was occuring after a recent update and somehow also giving me the |
Hello, in the same way, I can't install Nodejs v19.9.0. The latest version found by asdf is v19.8.1 🫠 I tried to erase my cache with What's going on? |
Hi, the issue is still happening. I'll try these commands and comeback here; Tried the commands, and the issue is still happening 😢 Also, how to debug to help with more informations? |
Same issue for me on linux as well: ❯ asdf install nodejs 20.1.0
Trying to update node-build... ok
Downloading node-v20.1.0-linux-x64.tar.gz...
-> https://nodejs.org/dist/v20.1.0/node-v20.1.0-linux-x64.tar.gz
error: failed to download node-v20.1.0-linux-x64.tar.gz
-> https://nodejs.org/dist/v20.1.0/node-v20.1.0-linux-x64.tar.gz
error: failed to download node-v20.1.0-linux-x64.tar.gz
BUILD FAILED (Ubuntu 22.04 using node-build 4.9.115)
Binary installation failed; try compiling from source with `--compile` flag
❯ asdf install nodejs 20.1.0 --compile
Trying to update node-build... ok
Downloading node-v20.1.0-linux-x64.tar.gz...
-> https://nodejs.org/dist/v20.1.0/node-v20.1.0-linux-x64.tar.gz
error: failed to download node-v20.1.0-linux-x64.tar.gz
-> https://nodejs.org/dist/v20.1.0/node-v20.1.0-linux-x64.tar.gz
error: failed to download node-v20.1.0-linux-x64.tar.gz
BUILD FAILED (Ubuntu 22.04 using node-build 4.9.115)
Binary installation failed; try compiling from source with `--compile` flag Tried all the 19's and 20's that are available in list-all, same results. I do have aria2c, manually downloading the above url's via aria2c and curl both works fine. |
Removing aria2c from the PATH fixes it for some reason, so try that for anyone else having this issue. |
@OvermindDL1, sounds like a new issue worth reporting! https://github.com/asdf-vm/asdf-nodejs/issues/new/choose |
Same issue here on Windows 11 Ubuntu WSL:
20.2.0 installs fine. |
I'm also having the issue where i cant download Nodejs, I get the error message: |
Update: I managed to fix the issue, for some reason anaconda was messing up the install and uninstalling it fixed the problem ! |
Same here @lxe W10 WSL2 Arch Linux |
I was having this issue - thought it might be If you land here it could be because of IPv6, the network I was on didn't support it so I had to do: NODE_BUILD_CURL_OPTS=--ipv4 asdf install nodejs 20.5.0 |
I tried with NODE_BUILD_CURL_OPTS=--ipv4 asdf install nodejs 20.5.0 but I have the same error. |
Seeing #363 and tried some commands from there and nothing changes. One thing different it's when I running this:
results:
|
issue is upstream: nodejs/nodejs.org#5666 |
What happens if you try downloading the file manually from a browser? Try also downloading from curl directly from your terminal: curl -O https://nodejs.org/dist/v16.0.0/node-v16.0.0-darwin-arm64.tar.gz |
Also, @jtlimo, are you using any kind of VPN? Even Apple's Private Relay could interfere |
@augustobmoura see nodejs/nodejs.org#5666. nodejs.org is having issues that I'm guessing may be related to this: nodejs/build#3469 |
It's succesfull when run the curl command |
Yeah, but the error messages look different, @jtlimo can't even hit the server because of TLS problems. And also, I'm not having problems downloading the 16 version
That's weird, I'm not sure why would it fail on node-build and not on the regular command line. Let me check which other options node-build is adding to the command. Also, check if there are no new updates to curl, bash or packages in general. With brew, just run |
The issues are intermittent and don't always report the same issue. I've been having connection issues with rtx and github actions connecting to nodejs.org all week. This is not asdf or node-build related. Sometimes it's 404, sometimes 500, and sometimes it's just really slow. |
Ok, lets wait for it to stabilize again, and check if the |
Hi guys! I'm facing the same issue here. I was getting the same output of @jtlimo, but installing the current LTS version (18.17.1) asdf info:Linux <my-host> 6.2.0-32-generic #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
SHELL:
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
ASDF VERSION:
v0.13.0-43ca61a
ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git master 9275f49 FIX:It seems the problem is related to It just occurs with the LTS version. |
This works fine here. |
The solution from @Matozinho worked for me, but I found that the underlying issue was that |
Since this is still a problem in aria2 as @shane-lamb noted, I thought it might be helpful to know there's an easier way to implement the fix from @Matozinho. You can use a node-build setting variable to set the |
I just reinstalled aria2c with brew and it worked for me When I raised output verbosity with
|
Problem continues on M2 MacBook Pro
|
Hi, were you able to resolve this? i am having the same issue with my M1 |
@Resa-Obamwonyi the above solution by @andycarlberg worked for me |
I'm using a MacOS M1 and trying to install the 18.12.0 version, but instead I receive an error message that suggests to use the flag
--compile
; I tried using the flag, but the error continues.Also, reading some issues I tried some commands, like:
arch -x86_64 zsh
and after that ran the installation unsuccessfully.
The text was updated successfully, but these errors were encountered: