---
slug: "m1-mac-に-nodebrewで-node-をインストールする"
title: "Installing Node with nodebrew on an M1 Mac"
description: "Install Node.js on an M1 (Apple Silicon) Mac using nodebrew — install nodebrew via Homebrew and run `nodebrew setup`, step by step."
url: "https://www.ytyng.com/en/blog/m1-mac-に-nodebrewで-node-をインストールする"
publish_date: "2021-11-27T09:43:14Z"
created: "2021-11-27T09:43:14Z"
updated: "2026-05-11T13:15:09.453Z"
categories: []
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/74a5c2f9cbd14f5eb71b7673ac852ad5.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# Installing Node with nodebrew on an M1 Mac

<p>As of November 27, 2021, <code>node-sass</code> does not work on M1 Macs. Instead, if you use <code>dart sass</code> (the <code>sass</code> package), note that it may not work with Node 16 or later versions, making Node 15 the stable choice.</p>
<p dir="ltr"><span>(You might encounter the error: <code>Assertion failed: (thread_id_key != 0x7777), function find_thread_id_key, file coroutine.cc, line 134.</code>)</span></p>
<p dir="ltr"><a href="https://qiita.com/kuroro_ru/items/c907bf076002a5a985d0">https://qiita.com/kuroro_ru/items/c907bf076002a5a985d0</a></p>
<h2 dir="ltr">Installing nodebrew</h2>
<pre dir="ltr"><span>curl -L git.io/nodebrew | perl - setup</span></pre>
<p dir="ltr"><span>After installation, set the environment variables as instructed.</span></p>
<pre dir="ltr"><span>export PATH=$HOME/.nodebrew/current/bin:$PATH</span></pre>
<h2>Checking Available Versions</h2>
<pre>nodebrew ls-remote</pre>
<h2>Downloading and Compiling Source Code</h2>
<pre>nodebrew compile v15.14.0</pre>
<p>Although you might be inclined to run nodebrew install v...., there are generally no binaries for Darwin ARM in the repository (though there are binaries for Linux ARM and Darwin x64), so the installation will fail.</p>
<p>Therefore, if you are using an M1 Mac, you need to compile it yourself.</p>
<p>Once it's compiled, you can run</p>
<pre>nodebrew use v15.14.0</pre>
<p></p>
