Posted in: homelab, Projects

Installing node on debian based linux – update

Well, it’s quite a different affair now. Most places seem to be getting in on the “run this script, it’ll handle it for you” train, and I can’t say I dislike it.

New way:
via nodejs.org
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install #

Old way:
So yeah, installing node is sort of a stupid round about adventure in “do I want to deal with the old packaged version, or Do I want to bother installing it manually and being on the hook for updating it?”

I propose a middle ground with twice the madness

first, install npm via apt

sudo apt install npm

THEN install n with npm globally

sudo npm install n -g

then upgrade node with n

sudo n install latest

now update npm with npm

sudo npm install -g npm

profit?

Back to Top