-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Failed to install node 14 darwin-arm64 version #3148
Comments
nvm is not supported when installed from homebrew (as the brew formula should have told you). Please remove it and install it properly with the install script in the readme. The issue tho is that node 14 doesn’t have any arm64 builds, so you’ll have to use Rosetta. |
thank you for its work. emmm, I have a small doubt, Why is the link for downloading version 14 not x86 but arm64? and I tried to install version 10 and its link was x86. |
Hmm, node 14 does seem to have a darwin-x64 version https://nodejs.org/dist/latest-v14.x/ What's the full output from |
only version 14 is happend. other older versions are download version x86.
|
odd - that URL shouldn't 404 - you can see it right here: https://nodejs.org/dist/v14.21.3/ You're not using a mirror, so it should really be working. |
this site (https://nodejs.org/dist/v14.21.3/) not found |
ah, that's true, that means there isn't a darwin arm64 build. Turns out you can compile node 14 on darwin arm64, but there's no binary build until node 16. Which means that |
Yes, its. since this binary package does not actually exist, this is obviously an error. Who caused this error? node or nvm? |
It may be that the official list of API data exposed by node has arm64, but it is not |
It's not actually a problem - it's just that nvm doesn't have a hardcoded special case for node 14 + darwin + arm64, so it tries to find the binary, fails correctly, and then falls back to the source. |
i know. this is not smooth in the process, and at least there will be no more issues to solve this problem |
I’m not sure what’s not smooth about it - the output is usually ignored unless the command fails. |
I'm facing the same problem and not being able to download node 14 using nvm. Does anyone knows a palliative solution while this bug is not fixed? |
@LeonardoRick run a terminal in rosetta mode and it should work. also make sure youre on latest nvm. |
@ljharb Thanks! I'll try that. I managed to install the 14 versions checking out to nvm version |
I'm on nvm version 0.39.7. Did you also go back in nvm versions to get this to work? |
This comment was marked as outdated.
This comment was marked as outdated.
This seems to have worked for me as well. A colleague mentioned that 0.39.7 worked for them as well. |
This comment was marked as resolved.
This comment was marked as resolved.
Is there any solution for this? I'm using the setup-node action and it still fails with message: |
@dvag-lukas-rybacki setup-node doesn’t use nvm, afaik. I use ljharb/actions/node/install personally, which uses nvm. |
@ljharb looks like the job is using nvm or did i missunderstand something? https://github.com/actions/setup-node/blob/main/.github/workflows/versions.yml#L48 |
@dvag-lukas-rybacki oh cool, i didn't realize. it'd be important that it uses the latest version of nvm tho; older ones definitely will have trouble in this scenario. |
I encountered the same issue. I resolved it by downloading binaries from https://nodejs.raccoon-tw.dev/ and then using the following commands:
|
Operating system and version:
macos 13.4.1 (arm64)
nvm debug
output:nvm ls
output:How did you install
nvm
?brew install nvm, homebrew
What steps did you perform?
nvm install 14
What happened?
Downloading and installing node v14.21.3...
Downloading https://nodejs.org/dist/v14.21.3/node-v14.21.3-darwin-arm64.tar.xz...
curl: (22) The requested URL returned error: 404
Binary download from https://nodejs.org/dist/v14.21.3/node-v14.21.3-darwin-arm64.tar.xz failed, trying source.
grep: /Users/ato/.nvm/.cache/bin/node-v14.21.3-darwin-arm64/node-v14.21.3-darwin-arm64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
What did you expect to happen?
download success
Is there anything in any of your profile files that modifies the
PATH
?no
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?The text was updated successfully, but these errors were encountered: