首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行` `git时显示的Jade中重复出现的npm警告--在节点+快捷目录中添加.`

运行` `git时显示的Jade中重复出现的npm警告--在节点+快捷目录中添加.`
EN

Stack Overflow用户
提问于 2014-09-04 03:46:31
回答 1查看 530关注 0票数 0

我启动了一个新的Express目录,并运行git add .将其添加到源代码管理中。当我这样做时,我会犯以下错误:

代码语言:javascript
复制
$ express -c stylus
$ sudo npm install -d
$ git init
$ git add .
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/.gitattributes.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/.npmignore.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/.travis.yml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/LICENSE.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/README.md.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/index.js.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/node_modules/uglify-js/node_modules/uglify-to-browserify/.npmignore.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/node_modules/uglify-js/node_modules/uglify-to-browserify/.travis.yml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/node_modules/uglify-js/node_modules/uglify-to-browserify/LICENSE.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/node_modules/uglify-js/node_modules/uglify-to-browserify/README.md.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/node_modules/uglify-js/node_modules/uglify-to-browserify/index.js.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/node_modules/uglify-js/node_modules/uglify-to-browserify/test/index.js.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in node_modules/jade/node_modules/constantinople/test/index.js.
The file will have its original line endings in your working directory.

我怎么能压制这些?我应该解决这个问题还是忽略它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-04 17:58:29

这不能解决这个问题,但是看起来Jade开发人员不会解决这个问题-- https://github.com/visionmedia/jade/issues/1128

如果他们愿意,他们可以在本地运行$ git config --global core.autocrlf input来阻止错误的产生。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25656985

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档