How to install and update npm on Ubuntu ?

npm is the package manager for the Node JavaScript platform. When we used installed npm on Ubuntu using following command

$ sudo apt install npm

By default ubuntu unstalled npm version 3.5.2, which you can check as,

$ npm -version

But the software, we were trying to compile required npm version more than 3.5.2, so we upgraded npm to latest stable version using below command,

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )


$ sudo npm install npm@latest -g

Now you can check the version of latest npm as,

$ npm -version

Leave a Comment

Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded