Check if package lock is up to date with package.json
npm i package-lock-check
or to execute directly
npx package-lock-check
package-lock-check [path]
path is optional, default ./
Will check if the package-lock.json file is in sync with the package.json dependencies. Exists with 0 if everything is ok Exists with 1 if it's out of sync and prints the issues