why am i getting this error when running `eas build`

EPERM: operation not permitted, scandir ‘C:\Users\User\AppData\Local\ElevatedDiagnostics’
Error: build command failed.
i have expo version 48.0.9 ,eas-cli version : 3.8.1

Could it be that your project’s repository is not initialized by Git? If not, you have to initialize it with Git.

Here is a similar issue that got resolved: Error: EPERM: operation not permitted, scandir - #2 by wkozyra.