I am using lubuntu. Installed nodejs with the .tar file in /opt directory through the root user. Using ''sudo su'' command. Now I am not able to use nodejs with my private user, whereas I can use it with again root user. How can I use nodejs with my private user also?
Asked
Active
Viewed 239 times
0
-
Grow up and install the native Ubuntu node snap package: https://askubuntu.com/a/594657/ – karel Dec 27 '20 at 12:35
-
okay, I will try – Mukund Dec 27 '20 at 12:46
-
If you want the latest version you can install that snap package, and you can also install multiple versions of node.js alongside each other. – karel Dec 27 '20 at 12:48
-
So, should I just uninstall the node version I installed using .tar file? – Mukund Dec 27 '20 at 12:49
-
You get to choose whatever version(s) you want to install from a list. To show the list type `snap info node` – karel Dec 27 '20 at 12:50
-
I will add node with snap, along with the node that I installed using the tar file – Mukund Dec 27 '20 at 12:51