Install Node Js In Ubuntu using PPA

go Supported Ubuntu versions:

Ubuntu 10.04 LTS (Lucid Lynx, armhf build not available)
Ubuntu 12.04 LTS (Precise Pangolin)
Ubuntu 14.04 LTS (Trusty Tahr)
Ubuntu 14.10 (Utopic Unicorn)
How To Install Using a PPA

An alternative that can get you a more recent version of Node.js is to add a PPA (personal package archive) maintained by NodeSource. This will probably have more up-to-date versions of Node.js than the official Ubuntu repositories.

First, you need to install the PPA in order to get access to its contents: curl -sL | sudo bash -

The PPA will be added to your configuration and your local package cache will be updated automatically. After running the setup script from nodesource, you can install the Node.js package in the same way that you did above:

 he broke up with me and started dating someone else sudo apt-get install nodejs

The nodejs package contains the nodejs binary as well as npm, so you don’t need to install npmseparately. However, in order for some npm packages to work (such as those that require building from source), you will need to install the build-essentials package: sudo apt-get install build-essential Check node version:

 source site root@prashant:/home/prashant/# node -v  v0.10.40

 rencontres seniors maine et loire Check location of node:

 lugar para conocer gente df root@prashant:/home/prashant# which nodejs
 trouver un surnom pour site de rencontre  /usr/bin/nodejs

 see Make Your project with express framework: "here i am using name boot for project name": root@prashant:/home/prashant# express boot

This will create a your project in home with name boot. you can give any location.

  Install all modules from package.json

root@prashant:/home/prashant# cd boot && npm install

Giving permissions to folder:

root@prashant:/home/prashant# chmod -R 0777 /boot

Install nodemon so to avoid restarting of sever:

root@mds-prashant:/home/prashant# npm install -g nodemon