To install version 10, the command to use will be the following: Sudo snap install node -channel=13/stable -classic We can install version 13 running the command: Sudo snap install node -channel=14/stable -classic To install the latest version ( version 14) in a terminal (Ctrl + Alt + T) run: These are packaged applications with all their dependencies to run on all popular Gnu / Linux distributions from a single build. Snaps are easy to create and install software packages. Install NodeJS and npm via SnapĪnother way to installing NodeJS is through admin snap packages. May see all installation instructions available from project GitHub page. The commands will list the installed version of node and npm: We can use the following commands to see the installed version number. Install NodeJS and npmįor the installation, in a terminal (Ctrl + Alt + T) we will have to execute the command:Īfter the installation is complete, the NodeJS and npm modules should be installed and ready to use. If we add several repositories, the latest version of NodeJS will be installed and not the LTS. To install LTS version ( version 10), the PPA to be used will be:Īfter adding any of these PPAs, we will be able to install the latest version of NodeJS from the repository of our choice. To install version 12, you just have to run the command: Now for install the latest version ( version 14), in a terminal (Ctrl + Alt + T) we will add this PPA: If you don't have this tool yet, you can install it with the command: To do it we will have to have curl installed. To install NodeJS from NodeSource, simply run one of the following commands to add the specific version that interests us. From NodeSource we will be able to install a specific version of NodeJS. NodeSource is the company's own enterprise-level node repository that maintains and contains the latest versions of NodeJS. 1 Add NodeJS repository from NodeSource.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |