Apple silicon Mac에서 Node.js 셋업

Apple silicon Mac에서 Node.js 셋업

현재,

Node.js 가 Apple silicon을 지원하는 최소 버전이 15.5 이라, 그 이상을 설치하고 사용하면 놀라운 성능을 누릴 수 있습니다.

Running Node.js natively on Apple Silicon
Component-driven design & development for the modern web
Apple’s M1 Chip Benchmarks focused on the real-world programming
I’m pretty impressed by what I’ve seen with Apple’s M1 Chip. It’s really fastand powerful for essential everyday tasks, which include browsing the web,working with Intel-based apps, and using programming apps. Yes – the ecosystemis moving, and that may take time, but I think M1 is worth paying fo…

평소 즐겨 셋팅하던 homebrew는 최근 16으로 올라갔고, 그걸로 대부분 빌드가 잘 되는 걸 확인했지만, node-sass 처럼 버전 숫자에 민감한 패키지를 사용할 경우에 빌드가 실패했습니다.

짝수 안정 버전만 제공하는 homebrew만으로는 버전 15를 설치할 방법이 없는 것 같은데,

그래서 homebrew로 nvm을 설치하고, 설치 성공 직후에 나오는 가이드에 따라 ~/.nvm 등을 셋팅하고 버전 15를 설치하면, (현재는 nvm만 설치하면 15.14 로 맞춰짐)

됩니다.