

configure Node.js configure: Found Python 3.8.10. Then you need to switch to the directory using cd node-v18.15.0 command and run the configure script to verify all the system prerequisites required to install the package. This will create a local directory node-v18.15.0 and extract all the files in it. 17:24:55 (9.28 MB/s) - ‘ node-v18.15.0.tar.gz’ saved Īfter downloading the compressed package, you need to extract it by using tar -xzvf node-v18.15.0.tar.gz command as shown below. This will download the compressed package in your local system directory. In the next step, you need to visit the official website and download the latest node.js package by using wget or curl utility as shown below. Get:17 focal-updates/main Translation-en Get:16 focal-security/universe amd64 Packages Get:15 focal-security/main amd64 DEP-11 Metadata

Get:14 focal-security/main Translation-en Get:12 focal-security/main i386 Packages

Get:11 focal-updates/main amd64 Packages Get:10 focal-security/main amd64 Packages In the first step, you need to install all the latest available updates using sudo apt update command and then upgrade all the packages to the latest version by using sudo apt upgrade command as shown below.Īdvertisements sudo apt update & sudo apt upgrade How to Install the latest version of Node.js on Ubuntu/DebianĪlso Read: How to Install Jshon on Ubuntu 20.04 LTS (Focal Fossa) Step 1: PrerequisitesĪ) You should have a running Ubuntu/Debian System.ī) You should have sudo or root access to run privileged commands.Ĭ) You should have latest version of Python 3 installed in your System. Hence here we will see the steps to install Node.js through source code on Ubuntu/Debian based systems. I would mostly prefer to use the source code for installation. So to solve this problem you need to download and install Node.js from official website which always contains the latest version. This problem usually occurs when you installed Node.js from some repository or from node version manager which might not contain the latest version of Node. Many times you might have observed that when you try to install a package through NPM, the installation fails with the message that you need to install the latest version of node in your System. In this article, we will see how to install the latest version of Node.js on Ubuntu/Debian based systems.
