3 ms·
Why? NPM is a fantastic package manager.
by chrisco255 8y ago
Why? NPM is a fantastic package manager.
- TomMarius 8y agoBut a disastrous registry
- yegle 8y agoNPM introduced a new type of code injection.
- solarkraft 8y agoCould you explain the code injection vulnerabilities present in NPM that other package managers don't have?
- c256 8y agoNot the OP, but my understanding is that the problem is a matter of practice: there are so many tiny packages with such complicated dependency graphs that the exposed surface for attacks is two steps past gigantic. As someone who doesn’t use much JS/npm, but who did work with dependency graphs in software systems in a former life, my (largely academic) study suggests that this is an intractable problem in npm — that is, a solution is such a big change from npm foundational usage that it’s far more likely to be solved with an npm replacement than an npm change. I would welcome sources that either refute or confirm this.
- microcolonel 8y agoThe performance was poor enough for long enough (and continues to be, probably?) that more than one third party implementation came along to replace it. There's no real reason that NPM can't be as fast as Yarn, except that it isn't (or wasn't? I haven't used it for enough full-size projects lately that I would know whether or not it's gotten better).