f w h

Update Node via Command Line Without a Version Manager

Searching for how to do this via command line comes up with a whole lot of Stack Overflow posts on how to use either n or NVM to control your Node version. It isn’t a bad idea, but sometimes, like when I’m using an online IDE like Cloud 9, I know I have no need whatsoever to use a version manager.

So, I just tried npm i -g node, and it did the trick. Seems simple and like something any Node dev should know, but I never have done it, and searching Google didn’t turn up anything that didn’t use a version manager.

So, there you go. Simple as that.