NPM
NPM is the default package manager for Node.js projects.
What Is NPM
NPM installs JavaScript packages, runs project scripts, and records dependencies in package.json.
It is commonly used for frontend, backend, tooling, and documentation projects.
How To Use NPM
Install packages with npm install, run scripts with npm run, and keep dependency versions in package-lock.json.
Basic Example
npm install
npm run build
npm run typecheck
Common Concepts
package.jsondefines dependencies and scripts.node_modulesstores installed packages.package-lock.jsonlocks exact versions.- Scripts standardize project commands.
What To Learn Next
Learn semantic versioning, dependency updates, workspaces, publishing packages, and security audits.