npm install remove package lock json dependencies from package-lock.json code example
Example 1: delete package-lock.json command
rm package-lock.json
Example 2: 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