Node Sass on M-chip Apple
TIL how to run older projects on M-chip Apple computers
This week was the first time in my life working on an arm64
based Apple computer, an M3 silicon. So, naturally, while setting up my development environment I stumbled upon some things I hadn’t known before. In this case:
node
supports thearm64
architecture of M-chips only from version 16.3 upwards, so one of our old projects running onnode@14
was due for an upgradenode-sass
is deprecated, also doesn’t supportarm64
and should be upgraded tosass
However, we didn’t have time to do that. So for quickly getting older projects to run, we needed to run them in a terminal that can run x86_64
code. In MacOS this is called a Rosetta console and this is how you can enable it:
- Go to
Finder
>Applications
- Search for
Terminal
- Right click >
Get Info
- Check
Open using Rosetta
That’s it!
This post is licensed under CC BY 4.0 by the author.