I have already installed
babel-cli, but withOfficial exampleAn error will be reported after the test, as follows:
I am just using atom to learn ES6 and react. I am very grateful for the solution.
Install babel 6.x
6. babel is just a platform after X, and the rest is implemented by plug-ins and preset.
The main configuration file is:. babelrc
Babel-core, etc. are mainly required to be installed. You can go there.http://babeljs.io/docs/plugins/Yes.