Macにnode.jsが入っていなかったので入れてみました。
目的はNuxt.jsを触るため。Vue.jsは使っていたけど、Nuxtが出てきてから全く触っていなかったので。
					目次
					
					
					
					
Homebrew インストール
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Nodebrewインストール
brew install nodebrew環境パス
echo 'export PATH=$PATH:$HOME/.nodebrew/current/bin' >> ~/.bash_profile無かったら作る
mkdir -p ~/.nodebrew/srcインストール
nodebrew install-binary stableインストールしたバージョンの確認
nodebrew list
v12.5.0使う
nodebrew use v12.5.0また、パス通す
echo 'export PATH=$PATH:/Users/jsuzuki/.nodebrew/current/bin' >> ~/.bashrcbash_profileに追記
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi反映
source ~/.bash_profile