Hacker News new | ask | show | jobs
by abritinthebay 3336 days ago
Most of those critiques boil down to "it works differently to how I'm used to" or "I don't know how to use it so I'm going to criticize it poorly".

NPM has issues but most criticism of it is really complaints about bad dev practices (like not pinning versions correctly).

2 comments

More like it doesn't work as well as any other package manage I've used :)
It works better than Pip and the whole setup.py mess. (Pip doesn't even have a dependency resolver: https://github.com/pypa/pip/issues/988)
It works better than most I've used - especially most of the built in OS-level ones
One other one is that it has hilariously poor performance, and bizarre failure cases. For some forms of network failures it'll just say "callback called too many times" and crash.

There are literally no worse major package managers.

A good package manager can be misused and still work reasonably well; a bad one doesn't even work all that well when used correctly.

Or how about this for error reporting:

https://github.com/npm/npm/issues/9633

I especially like the part where it says "This is most likely not a problem with npm itself", even though it clearly is a problem with npm itself (as evidenced by non-deterministic nature of the bug).

That message is their generic message because ANY error ended up being reported in github as an issue with NPM.

Again, bad dev practice.