Delete files and folders – You might want to delete some files before running your build. Since deleting files doesn’t work on the file contents, there’s no reason to use a gulp plugin. An excellent opportunity to use a vanilla node module.


Problème:

[15:29:20] ‘styles’ errored after 95 ms
[15:29:20] Error: EEXIST: file already exists, mkdir ‘/home/intlangf/tb/gulp-plugins/dist/css’
at Error (native)

gulp tasks are failing with EEXIST errors (del), Del: Delete files and folders using globs.

Une alternative consite à utiliser del.sync:

Autres solutions à envisager