I
I
Innokenty Ivanov2018-05-09 13:13:42
npm
Innokenty Ivanov, 2018-05-09 13:13:42

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.
5af2ca7145376319700609.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-05-09
@Kenya-West

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

S
Stanislav Makarov, 2018-05-09
@Nipheris

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 question

Ask a Question

731 491 924 answers to any question