How to use babel6 with .babelrc
<p>I'm hitting this <a href="https://github.com/babel/example-node-server" rel="nofollow">example</a>. I had cloned it and run <code>npm install</code>.</p>

<p>Then I try to run <code>babel lib -d dist</code>, but I get <code>ReferenceError: [BABEL] lib/index.js: Unknown option: /home/.../example-node-server/.babelrc.presets</code>.</p>

<p>What's wrong? How can I properly transpile es6 code with babel6 and <code>.babelrc</code> using presets?</p>