素材巴巴 > 程序开发 >

ng new 新建项目时遇到warning: LF will be replaced by CRLF in .editorconfig. The file will have its original

程序开发 2023-09-07 07:26:53

ng new angular4新建项目时卡住了,出现warning: LF will be replaced by CRLF in .editorconfig. The file will have its original错误

解决方法:

git config --global core.autocrlf false

就可以解决了。

原因是:

路径中存在 / 的符号转义问题,false就是不转换符号默认是true,相当于把路径的 / 符号进行转义,这样添加的时候就有问题


标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。