FAQ: Browser Compatibility and Transpilation - Introduction to Babel

This community-built FAQ covers the “Introduction to Babel” exercise from the lesson “Browser Compatibility and Transpilation”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Create a Front-End App with React
Create a Back-End App with JavaScript

Learn Build Tools

FAQs on the exercise Introduction to Babel

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in #get-help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to #get-help and #community:tips-and-resources. If you are wanting feedback or inspiration for a project, check out #project.

Looking for motivation to keep learning? Join our wider discussions in #community

Learn more about how to use this guide.

Found a bug? Report it online, or post in #community:Codecademy-Bug-Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I’m on the 4th page of 7 in this exercise, the page is titled Introduction to Babel. I was instructed to write ‘npm run build’ in the terminal. When I do, I receive this message:

npm WARN lifecycle The node binary used for scripts is /home/ccuser/.bin/node but npm is using /usr/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.

browser-compatibility-and-transpilation-introduction-to-babel@1.0.0 build /home/ccuser/workspace/browser-compatibility-and-transpilation-introduction-to-babel
babel src -d out

Successfully compiled 1 file with Babel (1442ms).

Then, the instructions say to open ‘out/Dog.js,’ so I write in the terminal ‘cat out/Dog.js.’ I see the correct code come up, but the lesson won’t advance. I receive an error message saying ‘Did you open out/Dog.js?’ What am I doing wrong? Thank you.


I figured it out. It’s not asking you to do anything in the terminal, it’s asking you to click the file icon in the top left of the text editor, then click files > out > Dog.js, then press the ‘Run’ button once you’re in Dog.js. Oops!

Really useful! I also had the same problem!