LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm

node Package Manager

TLDR

Install dependencies
$ npm install
copy
Install package
$ npm install [package]
copy
Install globally
$ npm install -g [package]
copy
Install dev dependency
$ npm install -D [package]
copy
Run script
$ npm run [script-name]
copy
Start application
$ npm start
copy
Run tests
$ npm test
copy
Update packages
$ npm update
copy
Initialize project
$ npm init
copy
Clean install from lockfile
$ npm ci
copy
List installed packages
$ npm ls
copy
Check for outdated packages
$ npm outdated
copy
Run security audit
$ npm audit
copy
Uninstall a package
$ npm uninstall [package]
copy
Publish a package
$ 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.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

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.

SEE ALSO

node(1), npx(1), yarn(1), pnpm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid