npm
node Package Manager
TLDR
Install dependencies
$ npm install
Install packagecopy
$ npm install [package]
Install globallycopy
$ npm install -g [package]
Install dev dependencycopy
$ npm install -D [package]
Run scriptcopy
$ npm run [script-name]
Start applicationcopy
$ npm start
Run testscopy
$ npm test
Update packagescopy
$ npm update
Initialize projectcopy
$ npm init
Clean install from lockfilecopy
$ npm ci
List installed packagescopy
$ npm ls
Check for outdated packagescopy
$ npm outdated
Run security auditcopy
$ npm audit
Uninstall a packagecopy
$ npm uninstall [package]
Publish a packagecopy
$ npm publish
copy
SYNOPSIS
npm [command] [options]
DESCRIPTION
npm is the Node Package Manager and the default package manager for Node.js. It manages JavaScript packages and dependencies using package.json and package-lock.json files.npm provides access to the world's largest software registry with over two million packages.
PARAMETERS
COMMAND
npm command.install
Install packages.uninstall
Remove packages.run SCRIPT
Run package script.update
Update packages.init
Create package.json.ci
Clean install from package-lock.json (for CI/CD).audit
Run security vulnerability audit.ls
List installed packages.outdated
Check for outdated packages.publish
Publish package to registry.-g
Global installation.-D, --save-dev
Save as development dependency.--help
Display help information.
CAVEATS
Requires Node.js. package-lock.json for determinism. Network dependent.
HISTORY
npm was created by Isaac Schlueter in 2010 and is the default package manager for Node.js.