Node.js installation on centos 6.X

# curl -sL https://rpm.nodesource.com/setup | bash -
# yum install -y nodejs npm

# node --version
v0.10.32

# npm --version
1.4.28

# npm install -g bower

# bower --version
1.3.12


# npm install -g nodemon


Example, how to run an application on node.js server:

# mkdir -p /projects/myproject


# useradd developer

# chown -R developer /projects

# su - developer


$ vi ~/.bowerrc
{
	"directory": "public/vendor/lib"
}