how to check package.json and package-lock.json change code example
Example: how to generate package-lock.json from package.json
Have you deleted package-lock.json file? don't worry
Run below command to generate package-lock.json file in your folder.
npm i --package-lock-only