should i commit package lock json after add package-lock.json to git code example
Example: do i need to add package-lock.json to git
Yes.
Explanation: To run the application, the dependencies must have been installed
before. So when you run "npm install", you need to know the version of each
dependency, which is stored inside package-lock.json.