我正在尝试使用反应导航,并获得此 错误:
17:04 警告软件包react-native-gesture-handler被忽略,因为它包含无效的配置。原因:找不到模块'react-native-gesture-handler \ package.json' 需要堆栈: -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ node_modules @ react-native-community \ cli \ build \ tools \ config \ resolveNodeModuleDir.js -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ node_modules @ react-native-community \ cli \ build \ tools \ releaseChecker \ index.js -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ node_modules @ react-native-community \ cli \ build \ commands \ server \ runServer.js -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ node_modules @ react-native-community \ cli \ build \ commands \ server \ server.js -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ node_modules @ react-native-community \ cli \ build \ commands \ index.js -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ node_modules @ react-native-community \ cli \ build \ index.js -E:\ ReactNativeProject \ stackNavigationTesting \ node_modules \ react-native \ local-cli \ cli.js
答案 0 :(得分:0)
此错误是因为您尚未安装react-native-gesture-handler
您可以使用npm install react-native-gesture-handler
安装后,您将摆脱此错误
谢谢
答案 1 :(得分:0)
我使用以下命令对其进行了修复:
npm install
然后重试