npm install creates package-lock.json but no package.json code example Example: npm generate package-lock.json npm install --package-lock