Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

npm

Node.js package manager

Syntax

npm [OPTION]... COMMAND

Common Options

installInstall package
uninstallUninstall package
updateUpdate packages
runRun script
initInitialize project
listList installed packages
auditSecurity audit
-gGlobal install

Common Examples

npm install

Install all dependencies

npm install express --save

Install and save dependency

npm run build

Run build script

npm init -y

Quick init project

npm audit

Run security audit

npm list -g --depth=0

List global packages

Related Commands

Related Tools

More Code & Dev Tools