No nonsense directly write to see steps:
1. Create a new folder in F-Disk called Babel
2. NPM Init initialization Project
3. Global installation NPM Install Babel Babel-cli-g
4. Project installation NPM Install BABEL-CLI--save-dev
There will be one more Node_modules package in the project directory.
5. Create a new Es6.js file
Write a es6 for yourself.
6. Input instruction Babel Es6.js-o compiled.js
There is one more Compiled.js file under the Discovery Project
But it's not compiled.
7. Enter the life type NUL>.BABELRC
There will be one more BABELRC file in the project
8. Installation command NPM install--save babel-preset-es2015
Then run Babel Es6.js-o compiled.js
OK has been compiled successfully
Babel Es6.js--watch--out-file compiled.js
command line input changes to this monitoring file
Windows system take you step by step without brain use Babel