![]() If your distribution lacks the lsb_release command, you can manually assign the DISTRO value or install lsb_release using this article. ![]() Replace the value of VERSION with the Node.js version you want to install. Or you can also write a shell script and run it. Now open the terminal, customize and pass the following commands one-by-one. Installing Node.js manually in Ubuntu KEYRING=/usr/share/keyrings/nodesource.gpgĬurl -fsSL | gpg -dearmor | sudo tee "$KEYRING" >/dev/null You can install it manually if you do not want to use the above method for whatever reason. ![]() If you are installing Node.js on a minimal version of Ubuntu that does not have curl and sudo setup, you can install curl and sudo using the following command – apt install curl sudo As you can see, I am using Pop!_OS for this article. ![]() You can use these instructions on any Ubuntu-based Linux distribution. For example, to install Node.js 17.1.0, replace xx.x with 17.x –Ĭurl -fsSL | sudo -E bash – Add Node.js repository sudo apt-get install -y nodejs Install Node.js in Ubuntu Install Node.js LTS version curl -fsSL | sudo -E bash -ĭo not forget to replace xx.x with the Node.js version you want to install. It is strongly advised to develop your app in the LTS version for production because it will receive all security and maintenance updates for an extended period of time. How to install Node.js in Ubuntu and Debian?Īt the time of writing this article, 16.13.0 is the latest LTS (Long-term Support) version of Node.js, and 17.1.0 is the latest release of Node.js.įor newcomers, 17.1.0 is a good place to start because it contains all of the most recent features released by the developers. In this article, we will learn how to install Node.js on Ubuntu Linux. In this article, we will not go into greater detail about Node.js and its functionality. Previously, Javascript was only used in web browsers to create interactive web applications however, with Node.js, we can now use Javascript to create command-line applications, as well as web applications that are designed and even backed by Javascript. Node.js has boosted the popularity of Javascript, which was already well-known. The most popular Javascript runtime is Node.js, which uses the V8 engine to perform useful tasks such as interacting with local storage.
0 Comments
Leave a Reply. |