Assuming you already have node.js, installation is as easy as:
$ npm install bailey -g
This installs it globally, but of course you can put it in your project’s package.json manually or by running npm install bailey --save.
npm install bailey --save