source: https://www.digitalocean.com/community/tutorials/nodejs-node-version-manager
Step 1: enter this to your terminal and close it
curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh> | bash
Step 2: enter this to your terminal
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \\. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \\. "$NVM_DIR/bash_completion"
Step 3: download node version 17. This is the one we are using
nvm install 17
Step 4: use node version 17
nvm use 17