When I run:
npx react-native run-android
It gives the error like this:
Error: EPERM: operation not permitted, scandir 'C:/Users/ . . . /node_modules/react-native-gesture-handler/android/...
when I ran Command Prompt as administration still giving the same error
CodePudding user response:
Perform the below steps
remove
node_modules
foldernpm install react-native-gesture-handler
in your
App.js
import the below lineimport 'react-native-gesture-handler'
remove the build folder from
android-> app -> build
npx react-native run-android
CodePudding user response:
As a result of my searches the problem was this react-native-gesture-handler
, So I uninstalled and reinstalled this dependency. no need to remove node_modules
and reinstall all, now the problem fixed.
uninstall:
npm uninstall react-native-gesture-handler --save
install:
npm install react-native-gesture-handler --save