react-native - 无法解析模块“react-native-gesture-handler”
问题描述
无法从“node_modules/@react-navigation/native/src/Scrollables.js”解析“react-native-gesture-handler”
E:\>npm install react-native-gesture-handler --save
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AppData\Roaming\npm-cache\_logs\2020-02-13T05_04_32_3
58Z-debug.log
解决方案
我刚刚找到了这个问题的解决方案..这只是版本错误
npm install react-native-gesture-handler@1.3.0
当我尝试这个时它正在工作
推荐阅读
- haskell - 使用简单函数使用 'print' 引起的模棱两可的类型变量 'a0'
- r - R Shiny:renderUI + uiOutput多个输入条件异步
- angular - Angular CDK 虚拟滚动不会一次选择 matselect 中的所有列大型数据集
- r - dplyr 组操作添加 na
- javascript - 从 Vue 中的插槽更新父级中的状态
- javascript - 将文件从我的服务器 API 上传到另一个 API - Node JS (Express)
- c++ - 如何使用内置排序功能对二维数组进行排序
- amazon-web-services - Jenkins 管道正在抛出无法连接到端点 URL:“https://ecs.ap-south-1.amazonaws.com/”
- javascript - 未捕获的 TypeError:google.translate.TranslateService 不是构造函数
- wordpress - Wordpress:需要图像+文本小部件