Motyar

@motyar

Freelance Web Developer

Static Web Hosting, made easy

Oct 9, 2013

Installing NodeJs on Ubuntu

Its very simple open your terminal and type this command.

sudo apt-get install nodejs

or a

Typical installation using ppa(Personal Package Manager):-

sudo apt-get update
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

You may need to install software-properties-common. Use this command:

sudo apt-get install software-properties-common

Check if its installed

node --version

It will display the version installed.

You may get this error

When running your NodeJs code you may get this error on ubuntu.
 
/usr/sbin/node: No such file or directory

Run this command to fix it:

utunga@ubuntu64:~$ export PATH=$PATH:/usr/bin

Check full NodeJs course here. Learning NodeJs

Labels: ,




By :