install node.js on ubuntu desktop

node.js is a platform built on Chromes javascript runtime for easily building fast, scalable network applications. Node.js uses an event driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

install node.js on ubuntu desktop

There are two ways you can install node.js on your ubuntu desktop.

Update 23rd December 2015

All the methods below are still valid to a certain extent. However, my prefered choice these days is to install Node.js via the Node Version Manager (NVM). There are a number benefits to using the NVM on your development machine.

The method below is the approach that is mostly described in a couple of the books available on node.js.

1

2

3

4

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get update

sudo apt-get install nodejs npm

However there seems to be a newer update to method which requires curl.

curl – A tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.

Learn more

Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.