Just search for node on Ubuntu Software store and install the first one. The easiest method to install Node.js on Ubuntu is to use the snap package. Note that if you are using an alternative Ubuntu distribution such as Trisquel, the $(lsb_release -sc) command may not work, so you'd have to replace it with the compatible Ubuntu version name, for example xenial. Other versions can also be gotten with a simple change to the repo URL - consult documentation for details. For the LTS version (6), the repository URL you should add is. This is for the latest (at time of writing) Nodejs version 7. Generally speaking, loading arbitrary data from a URL into a root shell session is not a good idea and I wish people would stop peddling it as a solution for everything - "Please just run this script I'm sending you, and also while we're at it - I have a bridge you'd probably be interested in purchasing".Īs an alternative, here's the "Ubuntu Way" of doing the same - this is basically everything the Node Source script is doing automatically, but here you can see how the system is being updated and know what repos and what keys are added to your system configuration: apt-key adv -keyserver -recv 68576280Īpt-add-repository "deb $(lsb_release -sc) main"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |