title: Babel has no effect on my Javascript
body: <p>I'm following <a href="http://www.programwitherik.com/what-is-babel-the-javascript-compiler/" rel="nofollow">Get To Know Babel The JavaScript Compiler Tutorial</a>, and this is my <code>polygon.js</code></p>
  
  <pre class="lang-js prettyprint-override"><code>class Polygon {  
    constructor(height, width) {
      this.height = height;
      this.width = width;
    }
  
    getArea() {
      return this.calcArea()
    }
  
    calcArea() {
      return this.height * this.width;
    }
  }
  </code></pre>
  
  <p>I run</p>
  
  <pre class="lang-none prettyprint-override"><code>babel polygon.js -o output.js
  cat output.js | pbcopy
  </code></pre>
  
  <p>pasting:</p>
  
  <pre class="lang-js prettyprint-override"><code>class Polygon {
    constructor(height, width) {
      this.height = height;
      this.width = width;
    }
  
    getArea() {
      return this.calcArea();
    }
  
    calcArea() {
      return this.height * this.width;
    }
  }
  </code></pre>
  
  <p>I was expecting a transpiling to ES5 but the code remained unchanged.</p>
  
  <p>What's going on?</p>
  
  <pre><code>$ .babel --version
  6.2.0 (babel-core 6.2.1)
  </code></pre>
  
  <p>EDIT: I installed the presets with <code>npm install babel-preset-2015 -g</code></p>
  
  <pre><code>~/es6:.babel polygon.js -o output.js --presets es2015
  Error: Couldn't find preset "es2015" relative to directory "."
      at OptionManager.mergePresets (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:327:17)
      at OptionManager.mergeOptions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:287:12)
      at OptionManager.init (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/options/option-manager.js:416:10)
      at File.initOptions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:190:75)
      at new File (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:121:22)
      at Pipeline.transform (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
      at transform (/usr/local/lib/node_modules/babel-cli/lib/babel/util.js:53:22)
      at Object.compile (/usr/local/lib/node_modules/babel-cli/lib/babel/util.js:62:12)
      at /usr/local/lib/node_modules/babel-cli/lib/babel/file.js:130:23
      at arrayEach (/usr/local/lib/node_modules/babel-cli/node_modules/lodash/index.js:1289:13)
  </code></pre>
  
  <p>EDIT: -g after the install was the issue. I installed locally and it works.</p>