使用 react-native start 之后,在浏览器中不能访问服务,虚拟机中设置好IP和端口,还是不能下载android.bundle



  • react-native start 启动日志
    D:\workspace\react_native\rndemo> react-native start
    ┌────────────────────────────────────────────────────────────────────────────┐
    │ Running packager on port 8081. │
    │ │
    │ Keep this packager running while developing on any JS projects. Feel │
    │ free to close this tab and run your own packager instance if you │
    │ prefer. │
    │ │
    https://github.com/facebook/react-native
    │ │
    └────────────────────────────────────────────────────────────────────────────┘
    Looking for JS files in
    D:\workspace\react_native\rndemo

    [17:42:14] <START> Building Dependency Graph
    [17:42:15] <START> Crawling File System
    [17:42:15] <START> Loading bundles layout
    [17:42:15] <END> Loading bundles layout (0ms)

    React packager ready.

    [17:42:39] <END> Crawling File System (24126ms)
    [17:42:39] <START> Building in-memory fs for JavaScript
    [17:42:42] <END> Building in-memory fs for JavaScript (3300ms)
    [17:42:42] <START> Building in-memory fs for Assets
    [17:42:45] <END> Building in-memory fs for Assets (3243ms)
    [17:42:45] <START> Building Haste Map
    [17:42:47] <START> Building (deprecated) Asset Map
    [17:42:47] <END> Building (deprecated) Asset Map (546ms)
    [17:42:47] <END> Building Haste Map (1989ms)
    [17:42:47] <END> Building Dependency Graph (32677ms)


  • administrators

    启动日志没有任何问题 浏览器访问结果呢



  • 问题找到了,8081端口被本地一个应用的服务给占了


登录后回复