-
-
Notifications
You must be signed in to change notification settings - Fork 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
[Fix] nvm_get_download_slug
: better architecture selection for M1 Macs
#2657
[Fix] nvm_get_download_slug
: better architecture selection for M1 Macs
#2657
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
If the node version is below 16.0.0 then nvm will select x86_64 architecture, else arm64 architecture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Does perhaps the section in the readme that talks about Rosetta need to be updated now?
I don't think this is the right time to do so. Perhaps most of the developers already installed the current version of nvm and do not bother updating fixes. Removing talks about Rosetta in the next version upgrades would be better. For now, we can put a note governing to upgrade nvm in the Rosetta section. Hope this makes sense!! |
nvm_get_download_slug
: better architecture selection for M1 Macs
I think Maybe it is the right time to update the docs. |
Changed configuration in nvm_get_download_slug() function, made condition for darwin based OS running on arm64 arch i.e, MAC M1.
If so, then change HOST_ARCH to x64 so that NVM will fetch x64 arch package from node repository which is the only package node currently having for darwin systems but no arm64 based packages
Problem
Solutions Available
Solution
NVM working on mac m1 after making PR changes in nvm.sh