Linux 環境、または WSL 環境に Node.js v16 をインストールしたい。
apt-getだと微妙に古いのがインストールされて、それをアップデートしていくのは面倒なので。

インストール

やり方は公式通り。
Node.js LTS (v16.x): のとおりにインストールすればできます。

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y nodejs

なお、他のバージョンのインストール方法も同じページから参照できました。

参考サイト

https://github.com/nodesource/distributions/blob/master/README.md