Switching to ARM-Based Node on MacOS
<p>Why is there no single easily findable guide on how to do this? Well, there is now. After migrating to a M1/M2 MacBook from it’s Intel predecessors, you will want to do this.</p>
<p>Recently, I tried switching some of my personal projects to <a href="https://bun.sh/" rel="noopener ugc nofollow" target="_blank">Bun</a>. Only to realise that, even after deleting my <code>node_modules</code> I’d run into platform errors with esbuild. Luckily, getting rid of your old node installation and switching to a new one isn’t that hard.</p>
<p>This guide assumes you currently have some non-ARM version of node installed and do not use <a href="https://github.com/nvm-sh/nvm" rel="noopener ugc nofollow" target="_blank">nvm</a> yet.</p>
<p>First, let’s get rid of the current node installation. To do this, execute the following shell commands:</p>
<p><a href="https://medium.com/@k.auffinger/switching-to-arm-based-node-on-macos-964f89af4264"><strong>Website</strong></a></p>