react-native-vision-camera: 🐛 Error: EPERM: operation not permitted, lstat '...\node_modules\react-native-vision-camera\android\build\intermediates\cxx\Debug\3j3y4s34\obj\arm64-v8a\libVisionCamera.so.tmpfc89ebc'
What were you trying to do?
installed packages according to package.json
started npm start – --reset-cache
then npm run android
"dependencies": {
"@dhairyasharma/react-native-encryption": "^1.0.0",
"@react-native-community/datetimepicker": "^7.0.1",
"@react-native-community/netinfo": "^9.3.9",
"@react-native-community/progress-bar-android": "^1.0.5",
"@react-navigation/drawer": "^6.6.2",
"@react-navigation/native": "^6.1.6",
"@react-navigation/native-stack": "^6.9.12",
"axios": "^1.4.0",
"moment": "^2.29.4",
"react": "18.2.0",
"react-native": "0.71.7",
"react-native-blob-util": "^0.17.3",
"react-native-encrypted-storage": "^4.0.3",
"react-native-gesture-handler": "^2.9.0",
"react-native-reanimated": "~2.14.4",
"react-native-safe-area-context": "^4.5.2",
"react-native-screens": "^3.20.0",
"react-native-sqlite-storage": "^6.0.1",
"react-native-video": "^6.0.0-alpha.6",
"react-native-vision-camera": "^2.15.4",
"react-native-webview": "~12.1.0",
"vision-camera-code-scanner": "^0.2.0"
},
Reproduceable Code
No response
What happened instead?
After running the npm run android command, an error appears in the metro console:
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error: EPERM: operation not permitted, lstat 'D:\RN\tnt_toro\node_modules\react-native-vision-camera\android\.cxx\Debug\3j3y4s34\arm64-v8a\CMakeFiles\CMakeTmp\cmTC_548d5.tmpecf3f15'
Emitted 'error' event on NodeWatcher instance at:
at D:\RN\tnt_toro\node_modules\metro-file-map\src\watchers\NodeWatcher.js:231:14 {
errno: -4048,
code: 'EPERM',
syscall: 'lstat',
path: 'D:\\RN\\tnt_toro\\node_modules\\react-native-vision-camera\\android\\.cxx\\Debug\\3j3y4s34\\arm64-v8a\\CMakeFiles\\CMakeTmp\\cmTC_548d5.tmpecf3f15'
}
I checked the folder, it’s really empty. There is no file cmTC_548d5.tmpecf3f15.
Relevant log output
No response
Device
android studio virtual device
VisionCamera Version
^2.15.4
Additional information
- I am using Expo
- I have read the Troubleshooting Guide
- I agree to follow this project’s Code of Conduct
- I searched for similar issues in this repository and found none.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (1 by maintainers)
It works for me like this:
Try this https://www.youtube.com/playlist?list=PLQhQEGkwKZUrempLnmxjt7ZCZJu1W3p2i
@SalehArif it looks like you have too high a version of react-native try this:
Getting this error now. Which version of react-native are you using?
In my case it doesn’t work
I tried to downgrade the react-native-vision-camera version to 2.15.3 and got this