Question
node -v and nodejs -v different output
Hello everyone, I’m giving a try to Q&A since this community looks awesome.
I state that I am no ubuntu expert, and I’ve been following (surprisingly successfull!) many tutorials to set up my droplet till now.
I wanted to update my nodejs to the latest lts version (currently 10.13.0) and I thought of doing so with nvm. So i installed it, and got the version I wanted, everything seem okay, but I’m worried cause of different output version:
node -v
v10.13.0
nodejs -v
v8.10.0
Did I miss something? Should I uninstall nodejs with sudo apt remove nodejs - since I am now using nvm?
Thanks for helping out, good coding to you all ✨
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
what a mess. I would like to be able to install and update all packages in Ubuntu using apt. This thread is indicating that for node.js that there is a competing way to install/update node.js. Again, what a mess.