1 min read

Nodejs and NPM on Ubuntu Server 16.04

Nodejs and NPM on Ubuntu Server 16.04

Quick and easy way to install Nodejs on Ubuntu server. This will install the Nodejs PPA which contains the most recent versions of Nodejs.

Step 1 Add Nodejs PPA

Current Release: Current version as of the time of this article is Node.js 8.7.

sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

Step 2 Install Nodejs and NPM

After adding required PPA file lets install Node package. NPM will also be installed with node.js. This command will also install many other dependent packages on your system.

sudo apt-get install nodejs

Step 3 Check Nodejs and NPM versions

After installing node.js verify and check the installed version. You can find more details about current version on node.js official website.

node -v 

v8.7.0
npm -v

5.4.2

All should be good and Nodejs plus NPM are now install on your server.