I want to transpile several js files that are in ES6 to be compatible with chrome, but it seems the docs in http://babeljs.io/docs/usage/cli/ are not accurate.
After doing the first few steps I type in the console: babel and get:
You have mistakenly installed the
babelpackage, which is a no-op in Babel 6. Babel's CLI commands have been moved from thebabelpackage to thebabel-clipackage.npm uninstall babel npm install --save-dev babel-cliSee http://babeljs.io/docs/usage/cli/ for setup instructions.
And even if I run those two commands it mention, I still get the same error.
So my question is how are you supposed to transpile files with Babel and CLI?