Mo J
Mo J

Reputation: 89

Update Node JS on Ubuntu

Ubuntu 20.04.3 LTS Version 14.0.0 is installed, node -v always shows it. Although in the list of programs Node appears as 16.13.1. I can manually change the version via nvm, but this is very inconvenient. How to make sure that there is no ghost on my computer about version 14?

Upvotes: 3

Views: 3575

Answers (2)

Mo J
Mo J

Reputation: 89

I solved this problem

rm -rf ~/.nvm
nvm install 16

Upvotes: 0

Alex
Alex

Reputation: 146

You can use n module from npm in order to upgrade node

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

to update to the latest version use

sudo n latest

Explained

Upvotes: 5

Related Questions