To install different NodeJS version replace 22 with different version.
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# v0.40.1 of nvm was latest version back then, you can replace it with /master/
# instead of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js: