-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Sometimes gulp del cause EPERM error #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
EPERM means it doesn't have permission to delete the folder. You probably have the wrong permission set on that folder. |
@sindresorhus, yeah, I understand, what means EPERM, but it happens only from time to time. E.g. I run
|
Could it be a problem of pattern?
|
Generally this happens on Windows because a virus scanner or other background service has the file open when you try to delete it. Thanks, MS -- a completely non-deterministic symptom. Are you on Windows? |
@robich, Yes, I'm on windows. I'll try to disable antivirus but changing pattern from |
@havenchyk Yes, see sindresorhus/del#10 |
Hmm. |
Could anyone explain, how to handle this type of errors? e.g. to repeat task with |
I'm not sure if it's related directly to your problem but I was also getting this error intermittently - although checking my files & folders, the task had successfully run. Looking at your particular use case it doesn't seem like this applies but I hope this helps others: First, I was also getting another issue with After finding this solution and solving the problem above, my Basically when my globs started with
would become:
(I'm on Windows 8) |
Hi.
I'm trying del in my
clean
task.And from time to time during running
build
task I've gotOS: Windows 7.
Is it problem of my implementation or just wrong behavior on Windows?
Sorry if it's not a good place to post this problem.
Thanks
The text was updated successfully, but these errors were encountered: