Just ignoring package-lock.json is usually not enough: If you do a npm version now, npm will produce a package-lock.json, try to add it to git, and then fail (because it is ignored).
You should also add a .npmrc file with minimally this content:
package-lock=false
This prevents npm from creating the package-lock.json file.
Just ignoring
package-lock.json
is usually not enough: If you do anpm version
now, npm will produce a package-lock.json, try to add it to git, and then fail (because it is ignored).You should also add a
.npmrc
file with minimally this content:This prevents npm from creating the
package-lock.json
file.