EPERM: operation not permitted, rmdir

when i run eas build i get below error

EPERM: operation not permitted, rmdir ‘C:\Users\Dell\AppData\Local\Temp\eas-cli-nodejs\2564541a-81f1-4c1e-a9c4-2fff6809d742-shallow-clone’

Hi @gracevikram

It looks like something was locking that directory when eas tried to delete it.

On macOS or Linux a directory can be deleted even if there is a process accessing it. But on Windows, this causes an error. So my guess is that something is accessing that directory when eas tries to delete it. This could possibly be something like a virus scanner.

If you have a virus scanner, maybe try telling it not to scan C:\Users\Dell\AppData\Local\Temp\eas-cli-nodejs\

If it’s not a virus scanner doing it then I’m not sure how best to figure out what’s happening. It might be worth running eas build inside Windows Subsystem for Linux (WSL) instead.