【问题标题】:React Native: Why are some modules in package.json but not in node_modules?React Native:为什么 package.json 中有一些模块但 node_modules 中没有?
【发布时间】:2021-05-27 11:51:45
【问题描述】:

在我的 React Native 项目中,我的 package.json 文件中有很多依赖项不在我的 node_modues 文件夹中。具体来说,@react-native-community/... 模块都不存在。这正常吗?

【问题讨论】:

    标签: reactjs react-native package.json


    【解决方案1】:

    package.json 中的所有依赖都存放在 node_modules 目录中。

    并且当您要求 @react-native-community 依赖项也在 node_modules 中但不是单独的时,react-native-community 的所有 node_modules 都存储在 node_modules 中的 @react-native-community 目录中。

    您可以通过 node_moduels/@react-native-community/>

    查看它

    【讨论】:

      猜你喜欢
      • 2021-07-15
      • 2020-08-07
      • 2017-06-05
      • 1970-01-01
      • 1970-01-01
      • 2018-01-24
      • 2021-12-21
      • 2022-01-18
      • 2019-12-21
      相关资源
      最近更新 更多