The NPM Registry
NPM comes as two primary tools:
- A command-line tool with abilities that include installing and uninstalling packages.
- An online registry of all packages registered with NPM.
On the NPM registry, all public packages can be searched and reviewed before installing. Most packages come with a README.md file with instructions for installation and usage.
As a command-line tool, NPM comes with a litany of commands for working with packages. One of the most common NPM commands is:
npm install <package-name-here>
npm install with no specific package will (re)install all the packages for the project.
To learn more, run the following to get a brief overview of common commands:
npm -h works, too.
Alternatively, run the following to display a (long) list of all NPM commands paired with brief descriptions: