Oh it was mocked back then too—mostly for the pre-npm@3 releases that didn't dedupe. If you thought node_modules was big today, imagine what it was like then.
Though it clearly worked well enough to be fantastically successful despite valid complaints about it.