FAQ: Browser Compatibility and Transpilation - Install Node Packages

This community-built FAQ covers the “Install Node Packages” exercise from the lesson “Browser Compatibility and Transpilation”.

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

Introduction To JavaScript

FAQs on the exercise Install Node Packages

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!

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

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

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!

Enter ls into the terminal to see the file structure of your current directory. Notice the addition of node_modules .

You can also see the new folder by clicking on the file navigation button above the text editor.

I am not able to see the “node_modules” or the new folder.

7 Likes

It seems there’s no extra file or folder be added in my file structure too…!

this is the screenshot:
npm_js|690x329

running the commands gave errors and no node_modules folder was created

3 Likes

Hi all, same here.
On chapter 10 / Browser Compability and Transpilation / page 7, Install Node Packages…

I follow the exercise till the end and when I insert “ls” in bash, it only return “src” and nothing else.
Why is that?

24BBEB6C-BE3C-42EC-BB41-A84AB2298C30_4_5005_c

When I typed in the commands introduced in this exercise, I get the ‘warnings’ in the screenshot attached here. What do these mean? I imagine that these are different from errors, in that I don’t think I’ve messed anything up (e.g., syntax error). What types of situations would these warnings need to be addressed, and not just ignored?

1 Like

Does anyone else feel that this section is very dry, very confusing, and generally not as helpful as the rest have been to this point in the web dev track?

I’ve tried rereading every section so far, it’s just so bland and there isn’t the context that’s usually provided, I honestly didn’t get anything from the entire “BROWSER COMPATIBILITY AND TRANSPILATION” section.

If anyone has recommendations for Youtube videos that would help with this section that’d be greatly appreciated!

22 Likes

This section is very confusing. I don’t understand most of this and View solution doesn’t work.

4 Likes

I followed the instructions to download npm babel-cli

But it is still using core-js@<3. That file has been deprecated and no longer uses that version. The new version: core-js@3.

Hopefully, it gets updated soon.

Screenshot 2020-03-20 at 5.35.13 PM|564x426

yeah, same here. I don’t understand anything from 7th task

2 Likes

I honestly feel this section should have been cut shorter as the exercises provide little value due to the fact that the majority of learners haven’t yet built any applications/websites with javascript.
I reckon it’s nice to know but somehow seems to sow unnecessary confusion at this stage.
Sooner or later everyone will have to cover/learn this but probably not before we have built something.
Better to look it up again once you reach a skill level in which you inevitably have to use the syntax and methods provided in this lesson.

6 Likes

I have Absolutely no idea what’s going on here

9 Likes

I’m with you! I was with it as far as CanIUse, which looks like a good resource to remember for future use. And the historical / browser context was interesting.

But after that, I don’t know what I’m doing, and I don’t know why I’m doing it. It appears to assume a lot of knowledge that I don’t have, and I ended up just blindly copying and pasting command line code without understanding what was going on.

I don’t know why this module is here, but if needs to be here, it could probably use a review!

7 Likes

I felt exactly the same. I was cruising quite confidently through the previous material as it was very well laid out and informative, however I seem to have hit a wall with the node concepts. The section is really not well designed. There was no background info about node or bash shells.

5 Likes

I have found that if you make sure that you have ./package.json in your directory (which can be created by running npm init), then the node_modules does get created. From the babeljs.io website:

We can install Babel CLI locally by running:

npm install --save-dev @babel/core @babel/cli

Note: If you do not have a package.json , create one before installing. This will ensure proper interaction with the npx command.

1 Like

“The install command creates a folder called node_modules and copies the package files to it”.I don’t understand this.What is a node_module and what is it used for?

After read the commentaries, i understand. I dont gonna pay 20 euros per month to Codecademy. The example is on that post. The people dont understand what that challenge mean, and it no any hint, no video tutorial. And you think to read it about the challenge , or ask some of developer who create that chalenge. But its nobody here to answer you!! So it gonna be dificult to learn something with Codecademy ,because you just dont understand what they want from you. Thanks for that free 3 month of course for free, but i dont gonna still studing here, and paying 20 euros per month. Try to be more pro guys!!!

I second this. My screenshot is below. What’s going on?

Here is my screenshot. Yes, I would reset the lesson because somehow you are missing the node_modules.

By the way I’m on my second complete review of this chapter repeating all the lessons and the material is making a lot more sense the second time (and thanks to lots of helpful comments from the forum).

I am only a new student to Javascript, so I hope this helps but all of us really need a moderator to help clarify this chapter.

Thank you! Initialising first with npm init solved the installation problem! Still getting warnings about deprecated files, but at least the folders appear. That’s something :slight_smile: