I've started using react native with expo.
When trying to build the application with the command:
eas build --profile development --platform android
The build fails when it reaches Compressing project files and uploading to EAS Build
s://expo.fyi/eas-build-archive
Error: EPERM: operation not permitted, rmdir
'C:\Users\alok7\AppData\Local\Temp\eas-cli-nodejs\42a956b8-6863-
43cf-bb03-e249250926ea-shallow-clone' Code: EPERM
- Compressing project files
CodePudding user response:
There are several reasons why an eas build might fail when compressing project files and uploading to EAS Build. Some possible causes include:
Insufficient disk space: The build may fail if there is not enough free space on the disk where the build is being created.
File corruption: If the files being compressed are corrupted, the build process may fail.
Incorrect file permissions: The build process may fail if the user does not have the necessary permissions to access the files being compressed.
Compression algorithm error: The build process may fail if there is an error in the compression algorithm being used.
---- Updated answer ----
The EPERM: operation not permitted, rmdir error that you are seeing is likely caused by a permission issue on your system. This error typically occurs when the process that is trying to remove the directory does not have the necessary permissions to do so.
To fix this error, you can try the following steps:
Make sure that you have the necessary permissions to access the directory. This may require you to run the command prompt or terminal as an administrator.
If you are using Windows, try disabling any antivirus or security software that you have installed on your system. These programs can sometimes block access to certain directories or files, which can cause the EPERM error.
If the issue persists, try manually deleting the directory using the rmdir command. For example:
rmdir C:\Users\alok7\AppData\Local\Temp\eas-cli-nodejs\42a956b8-6863-43cf-bb03-e249250926ea-shallow-clone
- If the
rmdir
command still fails, you may need to grant yourself explicit permission to access the directory. You can do this by running theicacls
command to grant yourself full control over the directory. For example:
icacls C:\Users\alok7\AppData\Local\Temp\eas-cli-nodejs\42a956b8-6863-43cf-bb03-e249250926ea-shallow-clone /grant alok7:F