Apparently imminent npm v3 "flattens" node_modules/, which should help with this problem. At the same time I worry that version compatibility might become undecidable...
Although I'm sure there are module maintainers shipping AT gifs, we can't really blame npm for that.