This started happening just recently, but every time I run npm install
I end up getting dozens of node modules beyond what's listed in package.json
.
This answer shows that this is a new feature of npm 3
where the dependencies are being "flattened" instead of nested. However, I don't want to look at a bazillion modules every time I venture into the folder. Is there any way I can disable this setting?
No, that cannot be disabled.
https://github.com/npm/npm/issues/10079