News for hackers. Stuff that matters.
Re:Ask HN: Why is Node.js hated so much? by laurent92 on Saturday October 02, 2021 @11:05AM (#28729125)
Every time you commit, package-lock.json is different. And when it is not, then I have 26 new vulnerabilities to be fixed by “npm audit fix”. I have zero trust in my build being reproducible, or even working one year forward.
Re:Ask HN: Why is Node.js hated so much? by dymos on Thursday October 07, 2021 @07:58PM (#28793742)
If your package-lock changes every commit (I'm guessing this means it changes after every `npm install`) then you might have some issues within the team in terms of consistent npm/node versions, or perhaps with the registry you're using if it isn't the public registry.

In my previous role we constantly ran into issues with the integrity hash changing which was an unfortunate side effect of both the issues I mentioned above, an Artifactory npm registry and inconsistent npm/node versions

TL;DR though, it's not normal for the package-lock to change all the time.

Re:Ask HN: Why is Node.js hated so much? by jschroeder228 on Thursday October 07, 2021 @09:57PM (#28794828)
Docker? That gives you immutable images to deploy. The flip side is a language like clojure, which I love, but the deps are updated at a glacial pace.
Re:Ask HN: Why is Node.js hated so much? by cutler on Monday October 11, 2021 @07:00PM (#28834079)
Isn't that one of Clojure's selling points?
Re:Ask HN: Why is Node.js hated so much? by rewma on Sunday October 03, 2021 @04:10PM (#28740122)
> Every time you commit, package-lock.json is different. And when it is not, then I have 26 new vulnerabilities to be fixed by “npm audit fix”. I have zero trust in my build being reproducible, or even working one year forward.

In some of the nodejs projects I've worked, we had allu dependencies with pinned version numbers, and each week we created a ticket to track work on upgrading them. This typically involved a single commit updating package versions and running all tests. More often than not it took no work at all.

If a project just lets their dependencies change randomly and does not invest any work updating them, of course there's bound to be pain and suffering.