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&rsquo;s Intel predecessors, you will want to do this.</p> <p>Recently, I tried switching some of my personal projects to&nbsp;<a href="https://bun.sh/" rel="noopener ugc nofollow" target="_blank">Bun</a>. Only to realise that, even after deleting my&nbsp;<code>node_modules</code>&nbsp;I&rsquo;d run into platform errors with esbuild. Luckily, getting rid of your old node installation and switching to a new one isn&rsquo;t that hard.</p> <p>This guide assumes you currently have some non-ARM version of node installed and do not use&nbsp;<a href="https://github.com/nvm-sh/nvm" rel="noopener ugc nofollow" target="_blank">nvm</a>&nbsp;yet.</p> <p>First, let&rsquo;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>
Tags: Node macOS