Firstly install node.js or update it to v7
$ npm cache clean -f
$ npm install -g n
$ n stable
and yarn
$ brew update
$ brew install yarn
Run yarn in project directory. Yarn is a better alternative to npm
$ yarn
You need nodemon installed globally for fast restarting the server
$ npm install -g nodemon
and run it
$ npm nodemon src
$ pm2 start processes.json
$ sh deploy.sh [-sf]