首页 > 解决方案 > 无法解析模块“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

标签: react-native

解决方案


我刚刚找到了这个问题的解决方案..这只是版本错误

npm install react-native-gesture-handler@1.3.0

当我尝试这个时它正在工作


推荐阅读