Post

NVM is more love then Ubuntu Repo

nodejs from ubuntu repo is outdate as hell

The only thing that works for me, is grep the install.sh form here

like so

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

reload your bashrc

source ~/.bashrc

list all avaiable versions

nvm list-remote

install like this for e.g.

nvm install lts/hydrogen

and tell your system to use the version

nvm use v18.13.0

that’s all about it.

This post is licensed under CC BY 4.0 by the author.