DEV Community

loading...
Obaaa

Update nodeJS to the latest version in Ubuntu

MAHMOUD ABDELSAMEA
・1 min read

NVM (Node Version manager) with --lts

NVM installs both the latest stable node and npm for you

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | sh
source ~/.nvm/nvm.sh
nvm install --lts
nvm use --lts
npm --version

Now you are ready

Discussion (0)

Forem Open with the Forem app