npm ci
Clean install of
npm
project dependencies for automated environments. Installs packages based onpackage-lock.json
ornpm-shrinkwrap.json
. More information: https://docs.npmjs.com/cli/commands/npm-ci.
- Install project dependencies from
package-lock.json
ornpm-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