1Have you deleted package-lock.json file? don't worry
2Run below command to generate package-lock.json file in your folder.
3
4npm i --package-lock-only
5
1//Global
2npm config set package-lock false
3
4//Local
5echo 'package-lock=false' >> .npmrc
1[Solved] npm WARN old lockfile The package-lock.json file was created with an old version of npm