The package-lock.json file was created with an old version of npm npm install code example Example: npm generate package-lock.json npm install --package-lock