Skip to Content
FrontendSetupUpdate Node and NPM

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

Install 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 npm

Update 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 stable
Restart terminal to see new version
node -v npm -v
Last updated on