jorgebucaran / nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
https://git.io/nvm.fish
MIT License
2.13k stars 71 forks source link

Use darwin-arm64 binary when version above v16 #159

Closed raulrpearson closed 3 years ago

raulrpearson commented 3 years ago

Node.js v16.0.0 will be the first release to ship prebuilt binaries for Apple Silicon. This commit modifies the logic to keep darwin-x64 binaries for older versions but use darwin-arm64 for v16 or higher. Fixes #158.

jorgebucaran commented 3 years ago

Thank you, @raulrpearson.

jorgebucaran commented 3 years ago

So, darwin-x64 binaries work just as is on macs with the M1 chip too?

raulrpearson commented 3 years ago

Yes, using Rosetta. It's pretty seamless as a user. The only downside is that x64 binaries tend to run a bit slower, although that usually isn't a deal breaker.