logoalt Hacker News

ljmyesterday at 7:26 PM2 repliesview on HN

Thing is… who is regularly running `npm update` or `cargo update` to keep local software up to date?

I wouldn’t, because I might be in a repo and it starts upgrading all my local dependencies, and I’m not gonna add a text editor as a dev dependency. I’ll happily take the binary, or a tar.gz with the binary in it, though.

(Btw I love how it’s following the old DOS aesthetic)


Replies

Aldo_MXtoday at 7:39 AM

> who is regularly running `npm update` or `cargo update` to keep local software up to date?

I do, religiously, as part of my routine to check for updates.

  n lts && npm uninstall -g corepack && npm update -g && n prune
Sometimes things break (that's how `npm uninstall -g corepack` became a part of my one-liner), but it is easier to update often than to neglect updates for years.
_sinelaw_yesterday at 7:36 PM

The npm distribution here is just the binary, you run npm install again and it upgrades to the latest binary. That's convenient

show 1 reply