-
Notifications
You must be signed in to change notification settings - Fork 66
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
npm ci results in modified package-lock.json #426
Comments
SO can't find a bug on the npm repo about this, but some others are experiencing it and it's clearly a problem here. We have 2 options:
I've use yarn consistently for years over npm and would say it's pretty standard, it would require updates to the docs, CI workflows and a single additional global install for people who don't already have it I'd recommend the second option, which should just solve this and we can move on :) cc @moorepants @choldgraf @minrk |
I've experienced this behavior too. It's not clear to me why package-lock.json is ever modified. I thought the purpose of lock files was to stay static unless you explicitly want it changed. We can remove the git diff command, but I'd couldn't ever determine why it was there in the first place. What was the intended purpose of that command? As you imply, it was just to catch the npm bug? yarn is fine with me too. We use yarn on our other js packages and I haven't had any issues. |
We use yarn in the other JS packages of ebp, I believe, so I'm +1 on using yarn just for the sake of standardizing if anything else |
Describe the problem
npm ci
is modifying our package-lock.json, locally and on ci even though this is not documented behavior.This causes our
lint
test on CI to fail.Steps to reproduce.
git status
shows no local modsnpm ci
git status
showspackage-lock.json
as modifiedLink to your repository or website
No response
Provide steps to reproduce
git status
shows no local modsnpm ci
git status
showspackage-lock.json
as modifiedDescribe your environment.
The version of Python you're using
3.7
Your operating system
macos
Versions of your packages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: