LoginSignup
0
0

More than 1 year has passed since last update.

mac(Catalina, Big Sur)のnodeインストールメモ

Posted at

Macのパソコンを新しくしたらnodeのインストールで躓いたのでメモ

$ node -v をしたら下記エラーが出たのでおそらくシェルがbashからzshになったことで使えなかったぽい
※OSがCatalina, Big Surの場合はzshがデフォルト

zsh: node: command not found

成功した流れ

$ brew install nodebrew

$ nodebrew ls-remote

v15.0.0   v15.0.1   v15.1.0   v15.2.0   v15.2.1   v15.3.0   v15.4.0   v15.5.0
v15.5.1   v15.6.0   v15.7.0   v15.8.0   v15.9.0   v15.10.0  v15.11.0  v15.12.0
v15.13.0  v15.14.0  

$ nodebrew setup
$ touch ~/.zshrc
$ echo '# nodebrew' >> ~/.zshrc
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.zshrc
$ source ~/.zshrc

$ nodebrew install v15.14.0
$ nodebrew use v15.14.0 
$ node -v
7.7.6

参考

0
0
1

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