TIL: node, sass and M-chip Apple

This week was the first time in my life working on an arm64 based Apple computer, an M3 silicon. So naturally, while getting my dev environments up to speed I stumbled upon a couple of things I didn’t know because I didn’t have to before:

  • node supports the arm64 architecture of M-chips only from version 16.3 upwards, so one of the old projects running on node@14 was due for an upgrade
  • node-sass is deprecated, also doesn’t support arm64 and should be upgraded to sass

However, you can bypass all that by using a Rosetta console which allows x86_64 code to run on Apple Silicon. Here’s how to enable it:

  • Go to Applications in Finder
  • Search for “Terminal”
  • Right click > Get Info
  • Check “Open using Rosetta”

That’s it!

Photo by Moritz Kindler on Unsplash

Leave a Reply

Your email address will not be published. Required fields are marked *