忘れがちなので、書いておくことにしよう。
Ubuntuのコンテナ起動
docker run -it ubuntu
nodebrewのインストール
apt update apt install -y curl curl -L git.io/nodebrew | perl - setup
nodebrewのパス通す
cd ~ echo "export PATH=$HOME/.nodebrew/current/bin:$PATH" >> .bashrc source .bashrc
Nodejs入れる
nodebrew install v12 nodebrew use v12 node -v npm -v
以上!