5

I built an app in react native in Expo. After trying to make a build for google play store, I ran the command 'eas build --platform android' but I got the error saying ' Error: EPERM: operation not permitted, rmdir 'C:\Users<username>\AppData\Local\Temp\eas-cli-nodejs\cbb3100e-c845-4dda-8e44-8c0d7f74b4b5-shallow-clone' Code: EPERM'.

I have tried a lot of things but nothing works. I really need some help here.

3 Answers3

4

For me the problem is solved by adding "requireCommit": true to eas-cli version in eas.json. e.g.

  "cli": {
    "version": ">= 2.4.0",
    "requireCommit": true
  },

Source: https://forums.expo.dev/t/eas-0-44-1-internal-build-error-eperm/60930

bighead
  • 41
  • 3
  • Adding the `"requireCommit": true` did allow me to launch the build. After a long while, I got another error message: ```× Build failed Android build failed: Unknown error. See logs for more information. ``` I don't know where the log file in questio is supposed to be... – Francis Jan 13 '23 at 16:39
1

it cause by empty directory, please check the empty directory in project and delete it ..

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 06 '22 at 02:29
0

Make sure you run this as Administrator. EPERM is a permissions issue.

RyloRiz
  • 77
  • 2