Installing Node.js and NPM on Ubuntu/Debian

This is the simple way to install Node.js and npm which is needed for the installation of coco2d javascript

Step 1 – Update your system

sudo apt-get update
sudo apt-get install git-core curl build-essential openssl libssl-dev

Step 2 – Install Node.js

First, clone the Node.js repository:

git clone
cd node

Now, if you require a specific version of Node:

git tag # Gives you a list of released versions
git checkout v0.4.12

Then compile and install Node like this:

sudo make install

Then, check if node was installed correctly:

node -v

Step 3 – Install NPM

Simply run the NPM install script:

curl | sudo sh

And then check it works:

npm -v
 Happy Hacking

3 thoughts on “Installing Node.js and NPM on Ubuntu/Debian

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s