I have installed nvm (as root user) in my linux system (Ubuntu 22).On that time, I was connected by using a VNC session.The app is available every time I'm connecting with VNC.
The problem I'm facing is that my system is reporting nvm as not being available when I'm connecting locally, from the terminal, using the same user (root).
How can I access nvm from my local connection?(I found out that I have to execute 'source ~/.nvm/nvm.sh', Node Version Manager install - nvm command not found )
What is the difference between the two ways to connect by using the same user, root?