当我运行时:npx react-native run-android
它给出了这样的错误:
Error: EPERM: operation not permitted, scandir 'C:/Users/ . . . /node_modules/react-native-gesture-handler/android/...
当我以管理身份运行命令提示符时,仍然会出现相同的错误
发布于 2022-04-12 07:19:32
由于我搜索的结果是这个react-native-gesture-handler,所以某个时候只要重新启动计算机,错误就会修复,如果不是通过重新启动PC修复,那么卸载,然后重新安装这个依赖项。不需要删除node_modules并重新安装所有,现在问题解决了。
卸载:
npm uninstall react-native-gesture-handler --save安装:
npm install react-native-gesture-handler --save发布于 2022-04-12 06:20:22
执行以下步骤
node_modules文件夹npm install react-native-gesture-handlerApp.js中导入以下行导入'react-native-gesture-handler'
android-> app -> build中的
npx react-native run-androidhttps://stackoverflow.com/questions/71837658
复制相似问题