javascript - How to use babel under windows, encountered confusion
漂亮男人
漂亮男人 2017-05-16 13:37:35
0
3
370

After reading Teacher Ruan Yifeng’s tutorial, I looked at it vaguely. Can you guys please see where I went wrong?
The first step is to configure. Configure the .babelIrc stuff in the root directory, so I used sublime to create a .babelIrc folder in the new folder under BabelDemo, but how do I write code into the folder? Woolen cloth? I am creating a json under .babelIrc?

The second step is to start downloading the npm module in confusion

My editor at this time

I'm completely confused at this point, and I can't understand the tutorial at all. I feel so tired. The company does not use es6, and there is no front-end leader. What matters to us is that the back-end speaks JS junk language without looking at ES6. I want to learn by myself and set up a node.js environment. I have been stuck for a month to understand npm. After I know how to use nodejs npm, I want to learn babel. I want to create a hello.js written in es6 in a directory and convert it to es5. . I didn’t expect it to be so difficult. Hey
Can any kind-hearted person teach me how to use babel under windows? I’d be very grateful

漂亮男人
漂亮男人

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!