DEV Community

MAHMOUD ABDELSAMEA for Obaaa

Posted on • Edited on

Update nodeJS to the latest version in Ubuntu

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 | bash

source ~/.nvm/nvm.sh

nvm install --lts

nvm use --lts

npm --version

Now you are ready

Top comments (0)