我收到此错误,我无法正确解释。
有人可以给我一个很好的提示。
非常感谢
彼得

     Warning: Running "imagemin:dist" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined


Execution Time (2015-11-29 16:40:32 UTC)
loading tasks                   387ms  ▇▇▇▇ 12%
loading grunt-contrib-imagemin   2.6s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 79%
imagemin:dist                   288ms  ▇▇▇ 9%
Total 3.3s Used --force, continuing.

Running "imagemin:dist" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined

最佳答案

我有一个类似的错误。
就我而言,它有助于:

sudo npm cache clean && npm install grunt-contrib-imagemin

关于gruntjs - 约曼角构建过程问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33985245/

10-10 15:35