mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
npm-ci: add page (#14767)
This commit is contained in:
parent
c56d61f8d6
commit
6ee2b6dee4
1 changed files with 17 additions and 0 deletions
17
pages/common/npm-ci.md
Normal file
17
pages/common/npm-ci.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue