Node.js Grunt进程在堆栈的某个点中断

Node.js Grunt进程在堆栈的某个点中断,node.js,angularjs,gruntjs,Node.js,Angularjs,Gruntjs,有人能帮我解释一下这是怎么回事吗。grunt进程产生错误。我需要找出原因。“src”是做什么的 /////编辑2////// 使用命令“grunt imagemin--verbose--force”,我得到以下错误: Files: client/assets/images/timeline/jd_small.png -> dist/public/assets/images/timeline/jd_small.png Options: interlaced, optimizationLeve

有人能帮我解释一下这是怎么回事吗。grunt进程产生错误。我需要找出原因。“src”是做什么的

/////编辑2////// 使用命令“grunt imagemin--verbose--force”,我得到以下错误:

Files: client/assets/images/timeline/jd_small.png -> dist/public/assets/images/timeline/jd_small.png
Options: interlaced, optimizationLevel=3, progressive
Warning: Command failed:  Used --force, continuing.
Fatal error: Cannot read property 'contents' of undefined

不确定这告诉了我什么。

好的,如果图像损坏,grunt会抛出一个错误。我在Photoshop中打开并保存了它,瞧,grunt工作了


如果grunt能够输出这样的错误,那就太酷了。…

是否可以发布有问题的错误(以及产生错误的命令)?看起来这种配置与grunt有关-可能有助于读取该站点上的文档?我认为可能与src中的模式有关?我不太熟悉类似正则表达式的东西…src参数定义要匹配的文件。虽然看起来很相似,但实际上它不是一个正则表达式。它是一个glob(就像在shell中用于匹配多个文件,例如“*.txt”)。有关更多详细信息,请参阅。恐怕我对语法不太熟悉,因此我不确定它是否正确。使用--verbose或--debug选项运行grunt可能会很有用,可能会产生一些更有用的消息?可能会将问题提交给?
Done, without errors.


Execution Time (2014-07-12 09:39:26 UTC)
loading tasks  78ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 59%
svgmin:dist    54ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 41%
Total 132ms
    Warning: Running "imagemin:dist" (imagemin) task
Warning: Command failed:  Use --force to continue.

Aborted due to warnings.


Execution Time (2014-07-12 09:39:26 UTC)
loading tasks  188ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 62%
imagemin:dist  113ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 37%
Total 302ms Use --force to continue.

    Aborted due to warnings.
Files: client/assets/images/timeline/jd_small.png -> dist/public/assets/images/timeline/jd_small.png
Options: interlaced, optimizationLevel=3, progressive
Warning: Command failed:  Used --force, continuing.
Fatal error: Cannot read property 'contents' of undefined