Are you running npm update instead of npm install? It should not change on either install or build should change the lock file
Jul 11, 2022
3
Level 51
package-lock.json conflict on prod server
I like to build on the my assets on the server so my repo doesn't need to track all unnecessary changes. However because I build on the server the package-lock.json file gets changed, therefor I need to git reset that file after deployment.
Any ideas how to stop that? should I add that file to .gitignore, will that cause an issue?
Please or to participate in this conversation.