rm package-lock.json
# add it to the .gitignore and remove the file using the command as follow: git rm --cached package-lock.json