Install npm packages with frozen lockfile
Use npm-ci
for this
shell
# Install, but do not update the lockfile
npm ci
See the npmjs documentation for more info
When installing (with npm-install
) you can use --omit=dev
to skip devDependencies:
shell
npm install --omit=dev