Update Node and NPM
To know more about node, go read Node.js.
Version
Show the current version of Node and NPM installed on your system.
node -v
npm -vInstall Node and NPM
If you don’t have Node and NPM installed, you can install them using the package manager of your choice.
sudo apt update
sudo apt install nodejs
sudo apt install npmUpdate to new version
If you want to update Node and NPM to the latest version, you can use the following commands.
sudo npm cache clean -f
sudo npm install -g n
sudo n stableRestart terminal to see new version
node -v
npm -vLast updated on