VERSION="$(curl -Ls | jq -r '.name')"
curl -Lo- "${VERSION}/" | bash

Install NodeJS

VERSION="$(nvm ls-remote --lts | grep 'Latest LTS:' | grep -Eo 'v[0-9]+\.[0-9]+\.[0-9]+' | sort -k 1.2nr | head -n 1)"
nvm install "${VERSION}"
nvm alias default "${VERSION}"
nvm use default


You may have to restart your shell or otherwise fix your environment...

Remove old NodeJS Versions

nvm ls --no-colors | grep -Ev '^->' | grep '^ ' | grep -Eo 'v[0-9]+\.[0-9]+\.[0-9]+' | while read VERSION; do nvm uninstall "${VERSION}"; done