$ npm install git://github.com/Unitech/pm2.git#development -g
$ sudo yum install git wget emacs
$ sudo yum groupinstall "Development Tools"
$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
$ # put .bash_profile content to .bashrc
$ source .bashrc
$ nvm install v0.11.10
$ nvm alias default 0.11.10
$ npm install pm2 -g
$ # OR
$ npm install git://github.com/Unitech/pm2.git#development -g
$ yum install git wget emacs
$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
$
sudo update-rc.d -f pm2-init.sh remove
$ chkconfig --del pm2-init.sh
$ chkconfig --add pm2-init.sh
gyp WARN EACCES user "root" does not have permission to create dev dir : nodejs/node-gyp#126 -> add --unsafe-perm
Doesnt work
$ sudo sh -c 'echo "export PM2_HOME=/var/" >> /etc/profile'
$ sudo mkdir /var/.pm2; chown -R tknew:tknew /var/.pm2