Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 在node+express目录中运行`git add.`时,Jade中会显示重复出现的npm警告_Node.js_Git_Pug - Fatal编程技术网

Node.js 在node+express目录中运行`git add.`时,Jade中会显示重复出现的npm警告

Node.js 在node+express目录中运行`git add.`时,Jade中会显示重复出现的npm警告,node.js,git,pug,Node.js,Git,Pug,我启动了一个新的Express目录并运行了git add。将其添加到源代码管理。当我这样做时,我会出现以下错误: $ 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 ori

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

$ 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.

我怎样才能抑制这些?我应该解决问题还是忽略它?

这无法解决问题,但看起来Jade开发者不会解决这个问题-


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

可能与@JonathanLonowski相同,我尝试在Mac OSX上运行$git config-global core.autocrlf输入,并重复上述步骤。我仍然收到了同样的警告。@JonathanLonowski,至于第二个链接,我很感激接受git使用CRLF和LF的培训,但我问这个问题是为了在Jade中记录这些错误的存在。它是唯一抛出它的node.js模型,因此我正在寻找一个特定于Jade的答案。你是说StackOverflow不是这个请求的合适地点吗?