![]() Once added, you should receive the following output: # Installing the NodeSource Node.js 18.x repo. First, we need to add the repository with the following command: curl -fsSL | sudo -E bash. In this paragraph, we are going to install Nodejs with the NodeSource repository. ![]() Install Nodejs using APT with the PPA method So that is why in the next step, we are going to install the latest Nodejs version or a different version using the PPA (personal package archive) method. This is not the latest version of Nodejs. You should receive the following output: node -vĪs you can see, the default version of Nodejs that can be installed by the default repository in Ubuntu 22.04 is version v12.22.9 To install Nodejs from the default repo, execute the following command: sudo apt install nodejs -yĪfter successful installation, you can check the Node version with the following command: node -v This is the easiest and fastest way to install Nodejs. sudo apt-get update -y & sudo apt-get upgrade -y Install Nodejs from Default Ubuntu 22.04 Repositoryīy default, the nodejs packets are added to the default repository of Ubuntu 22.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |