LoginSignup
0
0

【node】nodebrewでインストールできないverがあった話

Posted at

はじめに

普段nodeのバージョンはnodebrewで管理しているが、参加しているプロジェクトでv14.21.3を使っていたので、nodebrewでインストールしてみたらエラーになったので備忘録。

いつものインストールの方法

いつもnodebrewでnodeをver指定してインストールするときは下記のコマンドでインストールする。

nodebrew install-binary v00.00.00

ちなみに現状インストールされているverを確認する方法はこれ。

nodebrew ls

しかし、下記のエラーが出てインストールできない。

Can not fetch: https://nodejs.org/dist/v14.21.3/node-v14.21.3-darwin-arm64.tar.gz

原因

M1macのようなarm64に対応していないバージョンのNode.jsはそのままだとインストールできないらしい。

解決方法

compileを使うとインストールできる!

nodebrew compile v00.00.00

ただinstall-binaryよりも時間がかかるので注意。

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