LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-ci

installs from package-lock

TLDR

Clean install from lockfile
$ npm ci
copy
Install production only
$ npm ci --production
copy
Install with legacy peer deps
$ npm ci --legacy-peer-deps
copy
Silent install
$ npm ci --silent
copy

SYNOPSIS

npm ci [options]

DESCRIPTION

npm ci performs a clean install of dependencies based exactly on the package-lock.json file. It is designed for automated environments like CI/CD pipelines where reproducibility is critical.The command deletes any existing node_modules directory before installing, ensuring a clean state. Unlike npm install, it never modifies the lockfile — if package.json and package-lock.json are out of sync, it fails with an error rather than silently updating.

PARAMETERS

--production

Skip devDependencies (npm 6; use --omit=dev in npm 7+).
--omit TYPE
Omit dependency type (dev, optional, peer).
--legacy-peer-deps
Ignore peer dep conflicts.
--silent
Suppress output.
--help
Display help information.

INSTALL

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

CAVEATS

Requires package-lock.json. Deletes node_modules. Fails on lockfile mismatch.

HISTORY

npm ci was added to npm 5.7 for deterministic builds in continuous integration pipelines.

SEE ALSO

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