npm Commands Reference

Every npm command that matters — install, ci, run, publish, audit — with the flags you actually use and the ci-vs-install gotcha that saves hours in CI. npm 10+.

Install & Uninstall

Run Scripts

Publish & Version

Inspect & Info

Workspaces & Init

Security

Config & Cache

Related references