I tried to install the
babel myfile.js > output.js
What you need is
babel-preset-es2015 tells babel you want to use ES5 standards.
$ npm install babel-preset-es2015 $ babel --presets es2015 myfile.js > output.js