0
0

nodebrewでnodeをいれようとするとError: Darwin arm64 is not supported.エラー

Posted at

Node.jsのv2.0.0をnodebrewでインストール

 nodebrew install v2.0.0

すると、

 Error: Darwin arm64 is not supported. at /Users/name/.nodebrew/current/bin/nodebrew line 743.

エラーメッセージ "Error: Darwin arm64 is not supported." は、nodebrewがM1チップ (ARM64アーキテクチャ)向けのNode.jsバージョンをサポートしていないことを示しています。Node.jsのARM64向けサポートは、比較的新しいため、すべてのバージョンで確実に動作するわけではありません。

方法1: Rosetta 2を使用してx86版Node.jsをインストール

softwareupdate --install-rosetta

nodebrewでx86版Node.jsをインストール:

arch -x86_64 nodebrew nstall v2.0.0

で解決しました。終わったら

nodebrew ls

で確認してみてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0