make package-lock.json to package.json with npm rebuild code example Example: npm generate package-lock.json npm install --package-lock