With npm v5 here is now package-lock.json
file being created after npm install
It is recommended to commit this file, but I have issue that this file is different for some reason between my dev machine and my server. Even if I push that file to repo, after npm install
on server, file changes.
So now I'm attempting to make git untrack this file. After following numerous answers from other questions, I seem to have almost managed to do so, it's not tracked on dev machine, doesn't appear in the repo itself, but after I pull code to server and make npm install
, it appears in modified
files.
File is in .gitignore
, but server git for some reason ignores it.
git check-ignore -v -n package-lock.json :: package-lock.json
git check-ignore -v -n --no-index package-lock.json .gitignore:10:package-lock.json package-lock.json
Possibly relevant info:
Dev machine: Windows 10. Server: Ubuntu 14.04. I'm pulling code to server using tags.