Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use npm ci instead of npm install. #26

Open
generalredneck opened this issue May 2, 2024 · 0 comments · May be fixed by #27
Open

use npm ci instead of npm install. #26

generalredneck opened this issue May 2, 2024 · 0 comments · May be fixed by #27
Assignees

Comments

@generalredneck
Copy link
Member

npm install installs and updates packages. npm ci will only operate if there is a package-lock file and cleans out node_modules completely every time, so there's no chance of old packages lingering around... but also gives you exactly what is in the lock file. The Circle CI node orb operates this way. and falls back to npm install only if there's not a lock file.

@edwtorba edwtorba self-assigned this May 2, 2024
@edwtorba edwtorba linked a pull request May 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants