Open senkorl opened 1 year ago
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.
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 nvm install 14
on a non-rosetta terminal?
Hmm, node 14 does seem to have a darwin-x64 version https://nodejs.org/dist/latest-v14.x/
What's the full output from
nvm install 14
on a non-rosetta terminal?
only version 14 is happend. other older versions are download version x86.
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.
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.
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 node-v14.21.3-darwin-arm64.tar.xz
. but it appeared when i input nvm install 14
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 nvm install 14
should fail to find the binary, and then attempt to compile the source. Does it not?
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
nvm install 14
should fail to find the binary, and then attempt to compile the source. Does it not?
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.
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 0.39.1
@ljharb Thanks! I'll try that. I managed to install the 14 versions checking out to nvm version
0.39.1
I'm on nvm version 0.39.7. Did you also go back in nvm versions to get this to work?
installing 0.39.1 worked for me. you can install it like so:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
@ljharb Thanks! I'll try that. I managed to install the 14 versions checking out to nvm version
0.39.1
This seems to have worked for me as well.
A colleague mentioned that 0.39.7 worked for them as well.
Can be executed at the terminal: arch -x86_64 zsh
Then execute it again:nvm install v14.21.3
Now, you can see the prompt for successful installation
可以在终端执行:
arch -x86_64 zsh
然后再次执行:nvm install v14.21.3
现在,你就可以看到安装成功的提示 了!
是因为node14没有ARM架构的安装包,同时使用nvm安装node会根据系统架构自动拼接下载链接,所以会安装不上。 这是强制将终端暂时调整为 64位的,然后再安装就可以了
Is there any solution for this? I'm using the setup-node action and it still fails with message: Unable to find Node version '14.x' for platform darwin and architecture arm64.
Even with a fix version of 14.21.3
@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:
mkdir -p ~/.nvm/versions/node/v14.17.1
tar -xJf node-v14.17.1-darwin-x64.tar.xz -C ~/.nvm/versions/node/v14.17.1 --strip-components=1
nvm use 14.17.1
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?