![]() Moreover, it will allow choosing between Node.js v4.x, Node.js v6.x, and Node.js v8.x version.įirstly, you need to install the PPA, in order to get access to its contents. It has more latest versions of Node.js, than the official Ubuntu-repositories. Step 2 - Install Using PPAġ) Now, for a recent version of Node.js, you will have to add a PPA, which is a Personal Package Archive. Next, you can decide if you want to work or not with the other versions, package archives, or version managers. It has a conflict with another-package, so the executable from Ubuntu repositories is called nodejs, instead of node.Ĥ) Now, to check the version of Node.js installation, type: nodejs -vĪfter knowing the version of Node.js installation from Ubuntu-repositories. It will install modules and packages also, to use along with Node.js. ![]() In case you want to install npm, that is node package manager, you can do that using the following command: sudo apt install npm Then, refresh your local package index using the following command: sudo apt updateĢ) Next, you will install Node.js from the repositories using the following command: sudo apt install nodejsģ) If the package in repositories suits your needs, you need not do anything else. So, to get the latest version, use an apt package-manager. Still, it is stable and sufficient for immediate experimentation with the language. Here, the version in repositories is 8.10.0. Step 1 - Install Distro-Stable Version for Ubuntuġ) Ubuntu 18.04 has a version of Node.js in its default repositories and it is useful to provide a consistent experience across various systems. We will also address a few FAQs related to the Node.js installation. In this tutorial, you will install Node.js on Ubuntu 18.04. Also, by leveraging JavaScript on both at the front as well as a back-end, it makes development more consistent and integrated. It allows users to make network applications easily. Node.js is a JavaScript-platform for general-purpose programming. Let's first understand - What is Node.js? Choose a different version or distribution Introductionīefore we begin talking about how to install Node.js on Ubuntu 18.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |