通过在设备上运行我的 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)