WSL2のUbuntuにLTSのnodejsをインストール

WSL2上のUbuntuにLTS版のNode.jsをインストールする手順。

sudo apt-get install curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install --lts

参考(https://docs.microsoft.com/ja-jp/windows/dev-environment/javascript/nodejs-on-wsl)