Sometimes gulp del cause EPERM error
See original GitHub issueHi.
I’m trying del in my clean
task.
gulp.task('clean', function(cb) {
del('build/**', cb);
});
gulp.task('build', ['clean'], function() {
...
});
And from time to time during running build
task I’ve got
‘clean’ errored after 24 ms Error: EPERM, rmdir 'D:\dev\projects…
OS: 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
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
EPERM during gulp commands - node.js - Stack Overflow
I have tried running gulp watch while everything is closed and then edit it in notepad, still got ` Error: EPERM: operation not...
Read more >How to fix 'npm install' errors on vagrant on windows because ...
The EPERM error implies a permission issue and npm suggests you run as sudo. Here's a hint… It doesn't work. Off to google...
Read more >"Error: EPERM: operation not permitted, rename" on npm install
Occasionally, my build will fail. Re-running it will cause it to be fixed. Here is a failed build example.
Read more >Npm failed with return code: 4294963248, Error: EPERM
We have the `npm install` task that suddenly fails with Error: EPERM: operation not permitted, unlink 'C:\....\tsserver.js'. This was not happening before ...
Read more >How to fix the npm ERR! code ELIFECYCLE error - Reactgo
This above error is occurred due to the node_modules folder is corrupted in your project, to fix it follow the below steps. First,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmm.
build/**/*
also causes EPERM. Onlybuild/**/*.*
works without problem.@robich, Yes, I’m on windows. I’ll try to disable antivirus but changing pattern from
build/**
tobuild
solves problem. I suppose, that the problem can be in pattern. But my main suggestion is thatdel
tries to remove folder during deliting file inside this folder. Is it possible?