grunt-contrib-imagemin output “Fatal error: ENOENT, no such file or directory”

前端 未结 6 1333
盖世英雄少女心
盖世英雄少女心 2021-01-04 04:25

The command grunt imagemin output the following to a random file.

Fatal error: ENOENT, no such file or directory \'app/public/assets/img/epg/rec         


        
6条回答
  •  無奈伤痛
    2021-01-04 04:54

    Uninstalling version 0.5.0 and going back to version 0.3.0 with the following commands should restore the prior functionality:

    npm uninstall grunt-contrib-imagemin
    
    npm install --save-dev grunt-contrib-imagemin@0.3.0
    

    There is an issue, https://github.com/gruntjs/grunt-contrib-imagemin/issues/140, that is being worked on, and when it is fixed it should be safe to upgrade.

提交回复
热议问题