How To Download Nodejs Ubuntu
If you are running a system with ubuntu just open a terminal emulator from the main menu.
How to download nodejs ubuntu. This command also installs many other dependent packages on your system. Sudo apt y install nodejs verify the version of node js installed. Option 2 installing node js with apt using a nodesource ppa. Run the following commands to update the package index and install node js and npm. Node v v14 0 0.
To install a different version of node js you can use a ppa personal package archive maintained by nodesource. Sudo apt update sudo apt install nodejs npm. To install nodejs and npm run the following commands. This will have more up to date versions of node js than the official ubuntu repositories and will allow you to choose between node js v10 x the maintenance lts version supported until april of 2021 node js v12 x the active lts version supported until april 2022 and node js v14 x the current release supported until april 2023. These ppas have more versions of node js available than the official ubuntu repositories.
Confirm that the installation was successful by checking the available version. The easiest way to install node js and npm is from the ubuntu repository. This will also install npm with node js. Step 2 install node js on ubuntu. Sudo apt install nodejs.
Node js v10 v12 v13 and v14 are available as of the time of writing. Install node js and npm from ubuntu official repository. Sudo apt updatesudo apt install nodejs npm. Sudo apt get install nodejs step 3 check node js and npm version. Download the node js source code or a pre built installer for your platform.
At the time of writing the version included in the ubuntu repositories is v8 10 0 which is the previous tls version. Node js and npm packages are available from the default ubuntu 18 04 repositories. First update the cache repository to ensure you install the latest versions of node js and npm. This will have more up to date versions of node js than the official ubuntu repositories and allows you to choose between node js v4 x the older long term support version which will be supported until april of 2018 node js v6 x supported until april of 2019 and node js v8 x the current lts version supported until december of 2019. Node js has a unique advantage because millions of frontend developers that write javascript for the browser are now able to write the server side code in addition to the client side code without the need to learn a completely different language.