Home NVM is more love then Ubuntu Repo
Post
Cancel

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

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

reload your bashrc

1
source ~/.bashrc

list all avaiable versions

1
nvm list-remote

install like this for e.g.

1
nvm install lts/hydrogen

and tell your system to use the version

1
nvm use v18.13.0

that’s all about it.

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