Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKevin Becerra
14,243 PointsWhy are other files appearing inside the node_modules folder when I haven't specified those packages
When I add a package with the npm into the modules folder a long list of other files are also being put into the folder and just crowed up the folder. I think the files are dependencies to the modules I'm installing but wouldn't they be inside the sub folder for the module I installed?
2 Answers
Manish Giri
16,266 PointsAll dependencies are installed inside node_modules
. So if package A
requires B
, and B
requires C
, all three would be installed on the same level in node_modules
.
Kevin Becerra
14,243 PointsOh, ok yea that makes perfect sense. Thanks!