Run npm install --package-lock-only (with the newer version of npm) to regenerate a package-lock.json.