Hacker News new | ask | show | jobs
by secoif 3531 days ago
what you described is npm@2's behaviour. npm@3 will flatten dependencies as much as possible
1 comments

How does it flatten dependencies? Symlinks?
no, it just installs everything it can into the top level node_modules. npm@2 would do this to a degree as well, it was just less sophisticated about it.
> into the top level node_modules.

Just tried using npm3 explicitly and I stand corrected.