Run this command to see what is currently running:
node -v ; which node ; echo $PATH ; npm root -g
Now install the new version of node you want:
nvm install xxx
Now install this new version as the default version:
nvm alias default xxx
This will not change anything in your current session, so create a new session and then try again:
node -v ; which node ; echo $PATH ; npm root -g
Now you need to show that the new version that you installed is now in use.
source share