About

This cheat sheet introduces developers to npm, the Node.js package manager. After reading this cheat sheet, you will have a better understanding of how to:

  • Create new Node.js applications.
  • Install third-party Node.js modules.
  • Publish your own modules.
  • Run npm life cycle scripts.
  • Audit your Node.js application for security vulnerabilities.

Excerpt

-v, --version: Prints the current version of npm you are using

-h, --help: Quick help on the specified command

-l: Displays full usage info

npx [command]: Runs an arbitrary command from an npm module (either one installed locally, or fetched remotely)

Related Cheat sheets