Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

NodeJS Installation on Ubuntu

Sam Carecho edited this page Jun 1, 2015 · 1 revision

Let’s first update the system

sudo apt-get update

If you have node installed, uninstall it.

sudo apt-get remove nodejs

Clean your system.

sudo apt-get autoremove

If you previously added a Node repository, remove them. The below command might be useful, but use it with utmost care:

sudo rm -f /etc/apt/sources.list.d/nodesource*

If your Ubuntu version is one of the following:

  • Ubuntu 12.04 LTS (Precise Pangolin)
  • Ubuntu 14.04 LTS (Trusty Tahr)
  • Ubuntu 14.10 (Utopic Unicorn)

Install the proper repository by running:

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -

Install Node by running:

sudo apt-get install -y nodejs
Clone this wiki locally