You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in npm/npm#17161, npm rewrites both package.json and package-lock.json to have LF line endings. That sucks when you have autocrlf=auto turned on for git.
Basically we need to add a .gitattributes file with the following to make it so running npm on Windows doesn't constantly leading to git thinking there are file changes to commit:
package.json text eol=lf
package-lock.json text eol=lf
The text was updated successfully, but these errors were encountered:
As reported in npm/npm#17161, npm rewrites both
package.json
andpackage-lock.json
to have LF line endings. That sucks when you haveautocrlf=auto
turned on for git.Basically we need to add a
.gitattributes
file with the following to make it so runningnpm
on Windows doesn't constantly leading togit
thinking there are file changes to commit:The text was updated successfully, but these errors were encountered: