logoalt Hacker News

_sinelaw_yesterday at 7:36 PM1 replyview on HN

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


Replies

shunia_huangtoday at 5:54 AM

I'm in the same boat as a JS/TS developer for years to get used to npm install the recent AI command line tools under global scope, it's really weired. Personally I don't event install front end toolchains global as almost all of them work under project scope.

But I totally get the idea behind this, it's greatly combined with the cargo toolchain and is widely installed than cargo (which by the way npm is much easier to install than cargo with my personal experience), npm handles update nicely, and it can handle multiple arch too. I would still prefer npm install because I have installed a lot recently so it's ok.