arcanum_jp’s blog

おっさんの日記

なんかM1 Macでbrew install node ができない

掲題の通りです。

% brew install node
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
    arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.

なんかエラーが出るのですが・・・お、、なんかヒントが書いてますね・・・

arch -arm64 brew install ...


なのでこのコマンドを利用します

%arch -arm64 brew install node
==> Fetching dependencies for node: brotli, c-ares, icu4c, libnghttp2, libuv, ca-certificates and openssl@1.1
==> Fetching brotli
==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.0.9
######################################################################## 100.0%
・・・略
Pruned 0 symbolic links and 8 directories from /opt/homebrew

お、、出来た出来た・・・

とりあえずバージョン確認して終わります。

% node -v
v19.3.0

ちゃんちゃん・・・