Prod and beta keep ending up out of sync with the git repository because they overwrite package-lock.json in a couple weird ways. This seems to be a somewhat common albeit extremely frustrating problem (see here and here).
I'm in the process of trying what was recommended by at least one of the tickets addressing this problem:
[x] Ensure matching node/npm versions as a team: node -v and npm -v (and install matching versions if different)
[ ] Remove your node modules: rm -rf node_modules/
[ ] Clean your npm cache: npm cache clean --force
[ ] Revert the changes in your package-lock.json file (and this file only).
[ ] Install dependencies again: npm ci
I'll do that locally first, commit those changes, then iterate through on beta and confirm it doesn't change package-lock, then do it again on prod.
Prod and beta keep ending up out of sync with the git repository because they overwrite package-lock.json in a couple weird ways. This seems to be a somewhat common albeit extremely frustrating problem (see here and here).
I'm in the process of trying what was recommended by at least one of the tickets addressing this problem:
I'll do that locally first, commit those changes, then iterate through on beta and confirm it doesn't change package-lock, then do it again on prod.