Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does my node_modules folder have so much more stuff than yours? #22

Open
binarybill opened this issue Nov 5, 2018 · 1 comment
Open

Comments

@binarybill
Copy link

It seems like for every project I make it has to download so much stuff.

Also fyi, when I do "npm i browserfy" it gives a warning about fsevents. I think because fsevents is only for mac systems and I am using linux for development.

And thanks for your awesome tutorials !!

@shama
Copy link
Owner

shama commented Nov 5, 2018

It's likely the version of npm I was using at the time in the video. Previous versions of npm would nest dependencies more often:

node_modules/
  parent_module/
    node_modules/
      child_module/

Due to npm being used more for front end and other reasons, compatible modules are moved to the top level folder now with newer versions of npm:

node_modules/
  parent_module/
  child_module/

So it looks like more but it's the same. It was just more hidden in child node_module folders in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants