Small operational point: when you regenerate the lockfile, review the diff rather than committing it blind.
A regenerated lockfile can quietly bump a lot of transitive versions if any of your ranges are loose, so you fix the platform problem and simultaneously ship fifty unrelated dependency updates in the same commit. When something breaks next week, that commit is a very unpleasant thing to bisect into.
If the diff is huge, that is itself worth knowing about.