你好,在安装react本地导航组件后,我得到了这些错误,我正在使用EXPO而不是NVD。更重要的是解决粗体警告(最后两个警告)
npm WARN eslint-plugin-react-native@3.2.1 requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN native-base@2.7.2 requires a peer of react@>=16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN native-base@2.7.2 requires a peer of react-native@>=0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-maps@0.21.0 requires a peer of react-native@^0.51 || ^0.52 || ^0.53 || ^0.54 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated@1.0.0-alpha.3 requires a peer of react@16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated@1.0.0-alpha.3 requires a peer of react-native@^0.44.1 but none is installed. You must install peer dependencies yourself.
**npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):**
**npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})**发布于 2018-07-20 00:24:36
这些错误都不需要担心。实际上,它们不是错误,而是警告。
eslint代码质量检查软件。它只是检查你的代码,看看它是否符合最好的标准。如果愿意,您可以关闭该警告。
fsevents是一个可选的依赖项。如果您在mac系统上使用npm,则通常会出现此错误。不过,它应该不会对您的构建产生影响。如果您对最后两个错误特别不满意,可以运行npm i -f强制获取远程资源(这应该会消除依赖问题)。
https://stackoverflow.com/questions/51426935
复制相似问题