How to update node with nvm

I have to install nvm cus `node -v` keep showing me 16.14 besides the desired version

Downloading nvm thought curl
 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Setting its source
    source ~/.nvm/nvm.sh
Installing the latest version trough nvm
    nvm install node
in case u want to install a specific node version
    nvm install 17.7.2
change to use the desired version as the default
    nvm use 18.1
corrovore node version used
    node -v
I hope u find this info useful ʕ•́ᴥ•̀ʔっ