mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 04:02:03 +00:00
Update cheatsheets
This commit is contained in:
22
tldr/npm-ci
Normal file
22
tldr/npm-ci
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm ci
|
||||
|
||||
> Clean install of `npm` project dependencies for automated environments.
|
||||
> Installs packages based on `package-lock.json` or `npm-shrinkwrap.json`.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-ci>.
|
||||
|
||||
- Install project dependencies from `package-lock.json` or `npm-shrinkwrap.json`:
|
||||
|
||||
`npm ci`
|
||||
|
||||
- Install project dependencies but skip the specified dependency type:
|
||||
|
||||
`npm ci --omit={{dev|optional|peer}}`
|
||||
|
||||
- Install project dependencies without running any pre-/post-scripts defined in `package.json`:
|
||||
|
||||
`npm ci --ignore-scripts`
|
||||
Reference in New Issue
Block a user