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

前端 未结 6 1306
盖世英雄少女心
盖世英雄少女心 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:51

    I had the same issue with grunt-contrib-imagemin and it was because I was running grunt with sudo.

    My fix was to do a chown and a chmod on the entire structure then run grunt without sudo...

提交回复
热议问题