Skip to content

Instantly share code, notes, and snippets.

@sahajamit
Created August 17, 2017 03:41
Show Gist options
  • Save sahajamit/41aa9b1dca74770ade20404cc19bea1d to your computer and use it in GitHub Desktop.
Save sahajamit/41aa9b1dca74770ade20404cc19bea1d to your computer and use it in GitHub Desktop.
npm commands
npm view <package> version - returns the latest available version on the package.
npm list --depth=0 - returns versions of all installed modules without dependencies.
npm list - returns versions of all modules and dependencies.
npm list -g - returns versions of all modules and dependencies globally
node -v
npm info YOUR_PACKAGE version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment