What is npm ?
- Open-source developers from every continent use npm to share and borrow packages. Packages are structured to enable you to keep track of dependencies and versions.
How to Install npm & Manage npm Versions
Install Node.js & npm
- If you're using OS X or Windows, use one of the installers from the Node.js download page. Be sure to install the version labeled LTS. Other versions have not yet been tested with npm.

Update npm
When you install node.js, npm is automatically installed. However, npm gets updated more frequently than Node.js, so be sure that you have the latest version.
To test, run npm -v.
To be sure that this matches the latest version, scroll to the bottom of this page. If the version you see does not match the latest version, run:
npm install npm@latest -g
This will install the latest official, tested version of npm.
To install a version that will be released in the future, run:
npm install npm@next -g
Install a local package
npm install <package_name>
Show Local Packages Outdated
npm outdated
Update Local Packages
npm update
How to Uninstall Global Packages
npm uninstall -g <package_name>
How to Uninstall Local Packages
npm uninstall <package_name>