generate package-lock.json online code example Example: npm generate package-lock.json npm install --package-lock