Make sure your Ubuntu is up to date and patched.

$ sudo apt update
$ sudo apt upgrade

NPM is available within Ubuntu’s default software repositories, making it possible to install it using conventional package management tools. After confirming the installation, apt will install NPM and all required dependencies.

$ sudo apt install npm -y

Check NPM version

$ npm -v

# OUTPUT
6.14.4

Have fun!

Share:

Leave a Reply

Your email address will not be published.