question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometimes gulp del cause EPERM error

See original GitHub issue

Hi.

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:closed
  • Created 9 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

36reactions
havenchykcommented, Oct 23, 2014

Hmm. build/**/* also causes EPERM. Only build/**/*.* works without problem.

5reactions
havenchykcommented, Oct 22, 2014

@robich, Yes, I’m on windows. I’ll try to disable antivirus but changing pattern from build/** to build solves problem. I suppose, that the problem can be in pattern. But my main suggestion is that del tries to remove folder during deliting file inside this folder. Is it possible?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found