【发布时间】: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