How to npm rebuild package-lock

How to force a rebuild of package-lock. for both 6.x and 7.x you can do the following. Note that The –package-lock-only argument will only update the package-lock.json, instead of checking node_modules and downloading dependencies. https://docs.npmjs.com/cli/v9/commands/npm-install