- Check npm help
npm help <term> - Check npm version
npm -v - List all packages installed Globally
npm -g list - List all packages installed for user
npm list - Check for the specific package Globally
npm list -g grunt - Check for the specific package for user
npm list grunt - Check versions of all installed modules without dependencies
npm list –depth=0 (for locally)
npm list -g –depth=0 (globally) - Install a package globally
npm install -g chromedriver (Remove -g to install locally) - Update all packages in current folder
npm update - To see which global packages need to be updated globally
npm outdated -g –depth=0 - update a particular package
npm update -g