Answer the question
In order to leave comments, you need to log in
Why does package.json phantom change after installing dependencies via npm?
Why, in [email protected], after running the `npm i` command, does VS Code (or rather, git) signal that the package.json file is supposedly changing? Neither I nor the editor see the changes.
Answer the question
In order to leave comments, you need to log in
Something or with permissions or something, look like this for the changes that Git sees:
Try the command in the console:git config core.autocrlf true
This is a bug in NPM: https://github.com/npm/npm/issues/17161 and here is the fix https://github.com/npm/npm/pull/19904 . The release version with this fix is 5.8.0 and higher: https://github.com/npm/npm/blob/v5.8.0/lib/shrinkw... . Update NPM to at least this version.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question