Wiring Node Version Manager (NVM) on Ubuntu

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
# Activate nvm or restart your terminal session
. ~/.nvm/nvm.sh

# Install a node version
nvm install v18

To activate a version: nvm use node

To see install versions: nvm list


Taken from: nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions (github.com)