-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error: ENOTEMPTY: directory not empty #59
Comments
I'm hitting this issue as well, but only intermittently. It seems to empty the specified folder(s) and then throws the error. Then on running the build again it removes the now-empty directory successfully. |
I encounter this issue intermittently as well. Running the build again does not fix the issue. Usually have to manually delete the folder and run again. |
I've been noticing this as well lately after a bunch of things were upgraded (typescript, webpack, npm, etc.) Current config: node: v7.10.0 |
The same for me, seems to be an issue with CleanWebpackPlugin node v8.2.1 |
A quick search for the error seems to indicate that "it was due to the fact I had an explorer window opened in the directory I was trying to delete". Could this be the case here as well? |
Updating the version of rimraf in dependencies may help resolve the issue. ~2.5.1 will only bump it up to 2.5.4, and in version 2.6.0 this ENOTEMPTY error was addressed: After updating rimraf's version 2-3 days ago I haven't seen this error. Before that things were exploding left and right. |
Hi! I find this error occurs when nodemon is on. OS: Windows10 15063's WSL (Ubuntu 16.04) |
@wcxaaa have you updated this plugin to version |
@chrisblossom Yes I have.
When I start building server code while nodemon is on, it throws an error.
Here is the full error log. However, the error goes away when I shut nodemon down and build again. |
@wcxaaa is it possible for you to test if the issue is with https://github.com/isaacs/rimraf? Or at least make a minimal repository that displays the issue? |
I've created a minimal repo as you said to expose the error: To make them complain, after Clean-webpack-plugin now throws an error as displayed in this issue. Additionally, running
|
Hi, what's going with this? Started experiencing this myself with the latest version of the plugin (0.1.17) This issue might be related: |
Sorry, I have not had time to setup a local Windows VM. Although, I do think this particular issue is with isaacs/rimraf and not this plugin. |
I couldn't find yet what is causing it. I did comment on the issue I linked to from the rimraf repo, let's see. Thanks for such a quick reply. |
In case it's helpful for anyone else, it turns out I'd run webpack under sudo, so files created in |
@dlo I would highly suggest NOT running webpack with sudo. If you are experiencing permission issues without sudo you have other issues that should be solved. Again, running webpack as sudo is dangerous and should be avoided. |
No argument here. It wasn't purposeful--I ran foreman under sudo and webpack was one of the commands in the Procfile. It wasn't intentional. |
NTFS is shit. I guess this is inevitable for Windows users and nothing to do with this plugin or its dependencies. |
i'm just a noob but after running ng build for the third time it worked ._. .. |
npm install fixed my issue |
@shobhit-v what're your package.json contents? |
{ |
@shobhit-v Thanks, though doesn't help me much, they're all top level deps. |
Closed in |
I am getting same error using webpack on windows with the webstome, the version of the |
saved my day |
By Uninstalling the live server extension I solve It. |
Pretty regularly, I see the following error when starting webpack. My
dist
folder is typically a few folders deep. I usually just run webpack again and it works fine, but I thought I'd log an issue in case anyone else is seeing this as well:OS: Windows 10
clean-webpack-plugin version: 0.1.16
rimraf version: 2.5.4
The text was updated successfully, but these errors were encountered: