If we are talking about Node, we first must see what are the versions that are installed on the system. For this, we need to get the list:
nvm list
Then we switch between Node versions:
nvm use 16
Switch between PHP versions:
sudo update-alternatives --config php