Installing NodeJS on Ubuntu

Because of a name conflict, the name is nodejs  and not node. So here's the recipe that I used:

First, from here, the recipe for installing via package manager.

First, to set up:
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
Then install:
sudo apt-get install --yes nodejs
This installs nodejs. To rename, we need to do this:

sudo ln -s /usr/bin/nodejs /usr/bin/node
This assumes that nodejs has been installed at

/usr/bin/nodejs
In case that does not work, do:

where nodejs
and change the source of the link to that result.

Then 
sudo apt-get install npm

Comments

Popular Posts