Install node version manager:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
add nvm
to path: nano ~/.zshrc
add source ~/.nvm/nvm.sh
on top of the file
reopen shell and test with: command -v nvm
install nodejs + npm: nvm install --lts
list remote versions: nvm ls-remote
install version: nvm install 14 --lts
list local versions: nvm list
set default version: nvm use <version>
uninstall version: nvm uninstall <version>