首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >react本机错误fsevents@1.2.4 (node_modules\fsevents

react本机错误fsevents@1.2.4 (node_modules\fsevents
EN

Stack Overflow用户
提问于 2018-07-19 23:46:25
回答 1查看 684关注 0票数 0

你好,在安装react本地导航组件后,我得到了这些错误,我正在使用EXPO而不是NVD。更重要的是解决粗体警告(最后两个警告)

代码语言:javascript
复制
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"})**
EN

回答 1

Stack Overflow用户

发布于 2018-07-20 00:24:36

这些错误都不需要担心。实际上,它们不是错误,而是警告。

eslint代码质量检查软件。它只是检查你的代码,看看它是否符合最好的标准。如果愿意,您可以关闭该警告。

fsevents是一个可选的依赖项。如果您在mac系统上使用npm,则通常会出现此错误。不过,它应该不会对您的构建产生影响。如果您对最后两个错误特别不满意,可以运行npm i -f强制获取远程资源(这应该会消除依赖问题)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51426935

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档