1
0
Fork 0
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:
Martin Blume 2024-11-14 03:36:26 +01:00 committed by GitHub
parent c56d61f8d6
commit 6ee2b6dee4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
pages/common/npm-ci.md Normal file
View 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`