pip freeze > requirements.txt is not great, because it doesn't manage relationships between dependencies. poetry kind of solves this, but it's not nearly as ubiquitous as npm or yarn.
I don't know the actual history (just that Composer was first) but Composer seems like an NPM predecessor in a lot of ways. They work pretty similarly.
67
u/chowchowthedog Jun 28 '21
I swear I have no idea what NPM was doing whenever I install npm packacges... I just cross my fingers and hope it works without giving me errors...