Hundreds of node modules in folder

55 views
Skip to first unread message

Steven Ottz

unread,
Oct 12, 2015, 9:40:19 AM10/12/15
to nodejs
I am using npm grunt and only have 3 packages that I have installed however in my project,  node_modules folder have symlinks to hundreds of other packages (I think are dependencies of the main packages)

Why are so many packages being installed or linked locally in my development node_modules folder? 

Should I only see the packages that I have installed in this folder?

Thanks

Aria Stewart

unread,
Oct 12, 2015, 9:41:57 AM10/12/15
to nodejs
No, you should see most of them -- only ones that conflict in version with other requirements get nested. This is the new behavior in npm 3, and made life a lot better for Windows users and uses less time writing to disk too.

Aria 
Reply all
Reply to author
Forward
0 new messages