Why package.lock.json is getting modified while pull the main branch using `git pull origin main ` ? What is the reason and how to avoid it?

Viewed 38

While working on the live project, if I clone my latest main using the git pull origin main command, the package.lock.json file gets modified automatically before I do anything.

I can revert it to the old state, But I just want to know why it happens and am curious to know how to get rid of it.

0 Answers
Related