My Ubuntu version is 18.04.3 LTS. I am trying to install Node.js v12. but i can see that Version: 8.10.0~dfsg-2ubuntu0.4 can only be installed in my ubuntu . How to upgrade the version of node from 8.10.0 to 12?I tried many solutions but nothing worked for me.
Asked
Active
Viewed 25 times
0
-
3Does this answer your question? [How do I install the latest version of node.js?](https://askubuntu.com/questions/49390/how-do-i-install-the-latest-version-of-node-js) —. [this answer](https://askubuntu.com/questions/49390/how-do-i-install-the-latest-version-of-node-js/1240153#1240153) – karel Feb 01 '21 at 11:00
-
@karel - solution mentioned by you didn't work – Abhinav Kumar Feb 01 '21 at 11:17
-
Node.js 12 is the default snap package version in all currently supported versions of Ubuntu. For more information run `snap info node` – karel Feb 01 '21 at 11:19
-
so i ran the "sudo snap install node --classic --channel 11/stable" and triedto check the version of node . Error pops out "bash: /usr/bin/node: No such file or directory" . So where would the nodeget install? as it says "snap node is alreadyinstalled"? – Abhinav Kumar Feb 01 '21 at 11:32
-
`snap run node` will print the node.js version and show the node command line prompt which is a single `>` character. – karel Feb 01 '21 at 11:34
-
1yes. it worked. thanks for the help. – Abhinav Kumar Feb 01 '21 at 11:40
-
If this duplicate link answered your question please click in the blue banner above your question to confirm that the duplicate link worked, – karel Feb 01 '21 at 11:42