✖ Prebuild failed Error: EACCES: permission denied, scandir '/lost+found'
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 236
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 91
Description
### Build/Submit details page URL
https://expo.dev/accounts/bright-green/projects/bright-green-app/builds/b5e96a6f-ad32-4ed0-9b8b-65b7f66858bc
### Summary
When I run eas build --platform android I get the following error
```
yarn run v1.22.19
$ /home/expo/workingdir/build/frontend/node_modules/.bin/expo prebuild --no-install --platform android
env: load .env
env: export EXPO_PUBLIC_GOOGLE_MAPS_API_KEY
The android project is malformed, project files will be cleared and reinitialized.
- Clearing android
✔ Cleared android code
- Creating native directory (./android)
✔ Created native directory
- Updating package.json
✔ Updated package.json | no changes
- Running prebuild
✖ Prebuild failed
Error: EACCES: permission denied, scandir '/lost+found'
Error: EACCES: permission denied, scandir '/lost+found'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn expo prebuild --no-install --platform android exited with non-zero code: 1
```
### Managed or bare?
managed by expo
### Environment
**npx expo-env-info output**
```
npx expo-env-info
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
Yarn: 1.22.22 - ~/src/secretlab/bright-green-app/frontend/node_modules/.bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
Managers:
CocoaPods: 1.15.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 15.4/15F31d - /usr/bin/xcodebuild
npmPackages:
babel-preset-expo: ~11.0.0 => 11.0.10
expo: ~51.0.11 => 51.0.14
expo-router: ~3.5.15 => 3.5.16
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.2 => 0.74.2
react-native-web: ~0.19.6 => 0.19.12
npmGlobalPackages:
eas-cli: 10.0.3
expo-cli: 6.3.10
Expo Workflow: managed
```
**npx expo-doctor output**
```
npx expo-doctor
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
Didn't find any issues with the project!
```
### Error output
_No response_
### Reproducible demo or steps to reproduce from a blank project
just running eas build --platform android creates the error.
Contributor guide
Assessment
This issue has not been assessed yet.