Node: use `npm ci` to install dependencies on CI
Open
area: ci
role: nodejs
- Dominant language
- HTML
- Stars
- 57
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
npm 5.8 introduced a `ci` command designed to install dependencies on continuous integration environment. It's much faster, reliable and secure as it ensures `package-lock.json` matches with `package.json`.
Let's see how we can use this command instead of `npm install` in this context.
Contributor guide
Research direction
The issue names no files; start by locating the CI configuration and the current npm install command. Check how package.json and package-lock.json are used there, then run the CI checks to confirm the dependency installation succeeds with npm ci.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- ci-cd
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100