create package.lock code example
Example 1: npm generate package-lock.json
npm install --package-lock
Example 2: package-lock what is it
The package-lock.json is solely used to lock dependencies to a
specific version number. So that when teammates clone your work
their dependency versions are the same as yours, or vice versa.