【问题标题】:Finding dependencies of package manager is super slow查找包管理器的依赖关系超级慢
【发布时间】:2016-07-01 10:42:47
【问题描述】:

通过

在设备上运行我的 react-native 应用程序
react-native run-ios

react-native run-android

启动包管理器,但由于未加载依赖项,因此加载应用程序需要很长时间。加载所有依赖项总共需要 297646 毫秒,这可能是不正常的。 我已经重新启动了我的计算机和包管理器,但每次都需要很长时间。

我的包管理器终端的输出是:

[

12:28:56 PM] <START> find dependencies  
[12:30:42 PM] <START> request:/index.ios.bundle?platform=ios&dev=true  
[12:31:57 PM] <END>   Crawling File System (342321ms)  
[12:31:57 PM] <START> Building in-memory fs for JavaScript  
[12:32:00 PM] <END>   Building in-memory fs for JavaScript (2127ms)  
[12:32:00 PM] <START> Building in-memory fs for Assets  
[12:32:01 PM] <END>   Building in-memory fs for Assets (1268ms)  
[12:32:01 PM] <START> Building Haste Map  
[12:32:01 PM] <START> Building (deprecated) Asset Map  
[12:32:02 PM] <END>   Building (deprecated) Asset Map (351ms)  
[12:32:02 PM] <END>   Building Haste Map (1155ms)  
[12:32:02 PM] <END>   Building Dependency Graph (346928ms)  
transformed 625/625 (100%)  
[12:33:53 PM] <END>   find dependencies (297646ms)  

【问题讨论】:

  • 您的代码是在网络共享还是类似的地方?看起来文件系统是瓶颈。
  • 不,它在我的 macbooks SSD 上。没有网络驱动器或类似的东西。

标签: react-native watchman packager


【解决方案1】:

启动总是很慢,但随着打包程序的运行,这不是问题。

【讨论】:

    猜你喜欢
    • 2015-02-01
    • 2017-09-30
    • 2015-06-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多