lf will be replaced by crlf in package-lock.json. the file will have its original line endings in your working directory site:stackoverflow.com code example
Example 1: lf will be replaced by crlf
Linux and MacOS: use characters as in file
$ git config --global core.autocrlf input
Windows: deactivate the automatic conversion to CRLF
$ git config --global core.autocrlf false
Example 2: fatal: LF would be replaced by CRLF in package.json
$ git config --global core.autocrlf false
$ git config --global core.safecrlf false
Example 3: lf will be replaced by crlf in package.json
git config core.autocrlf true