Error: EBUSY: resource busy or locked, rmdir

If all the above solutions did not work AND you are using windows PC like in my case, the easiest thing to do is:

  1. Press windows key plus R on your keyboard to open the run command box and type this

    resmon.exe

  2. click OK to open resource monitor

  3. In the monitor, navigate to CPU tab

  4. Under Associated Handles in the search box, copy the path to the file or folder in question and paste it in there

  5. Click on the search icon

  6. You should be able to see all the programs using the file or folder

  7. right-click each and end-process

enter image description here

Now, continue what you were trying to do on the file or folder. In my case I was having problems using react-create-app via npm.
More information here #117908

I just hope it helps someone.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)