CICD-069 · Install locked npm dependencies
Encyclopedia · Language build toolchains · All snippets
Previous · CICD-068 · Next · CICD-070
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites source repository with committed build manifest and pinned matching toolchain.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
npm ci3. How it works
A clean install is based on the committed package lock and package manifest. An inconsistent pair is rejected.
4. Verify the result
Require package-lock.json and use the package manager version declared by the project.
Validation syntax-validated (Bash parse). Status definitions.