« Back to Glossary Index

npm, short for Node Package Manager, is the default package manager for Node.js, giving developers access to an enormous library of pre-built, reusable code packages, and a straightforward way to install, manage, and update them within a given project.

  • Installs external code packages a project depends on
  • Manages exact version numbers for every one of those dependencies
  • Runs predefined build and development scripts for a project
  • Publishes a developer's own packages for others to use

npm hosts the largest software package registry in the world, with well over a million publicly available packages. Rather than writing every piece of common functionality from scratch, developers can simply install an existing, well-tested package that already solves the exact same problem.

Running `npm install react` downloads the React library and adds it as a listed dependency in a project's configuration file — a single command replacing what would otherwise be a considerable amount of manual setup work.

Standard WordPress development rarely touches npm directly. It becomes relevant when building custom Gutenberg blocks, developing a headless WordPress frontend, or working with any of WordPress's own modern JavaScript-based development tools.

« Back to Index
Share This