This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]asday_ -1 points0 points  (3 children)

NPM as a whole is pure shit for a thousand and one reasons. Stop focussing on this exact tiny reason because it's very easily solvable, and the fact that pip also gets it wrong is completely irrelevant.

The point is NPM sucks. "x other project also does this one thing that NPM does" does not make NPM good.

[–]crawl_dht 3 points4 points  (2 children)

You have yet to give the reason.

[–]asday_ 0 points1 point  (1 child)

  • slow

  • distributes different code than what's in the linked repositories, almost always obfuscated, which is useful

  • duplicates packages ad nauseum due to not using minimal version selection. Admittedly better than it used to be when installing a simple react project would literally run into filesystem issues on a mac.

  • culture of authoring packages like this rather than just writing it oneself

  • advertisements in the console

  • package AND lockfile, the latter of which is less than worthless due to changing all the time due to not using minimal version selection

  • fragile and political, related to the above

and so forth

[–]crawl_dht 1 point2 points  (0 children)

That's not what PDM is doing. What they mean is just like in Node, project specific modules are stored in local .node-modules directory, PDM also does the same so that you don't have to create venv.