packager无法启动



  • 上一次启动packager在transform过程中,我突然中止结束了程序,之后就无法再次启动了。
    以下是我的输出 ┌────────────────────────────────────────────────────────────────────────────┐
    │ 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
    /home/ysc/rn

    [14:26:47] <START> Building Dependency Graph
    [14:26:47] <START> Crawling File System
    [14:26:47] <START> Loading bundles layout
    [14:26:47] <END> Loading bundles layout (1ms)

    React packager ready.

    [14:26:52] <END> Crawling File System (4990ms)
    [14:26:52] <START> Building in-memory fs for JavaScript
    [14:27:09] <END> Building in-memory fs for JavaScript (17158ms)
    [14:27:09] <START> Building in-memory fs for Assets
    [14:27:30] <END> Building in-memory fs for Assets (20752ms)
    [14:27:30] <START> Building Haste Map
    [14:27:31] <START> Building (deprecated) Asset Map
    Error building DependencyGraph:
    RangeError: Maximum call stack size exceeded
    at fastfs.js:300:19
    at Array.forEach (native)
    at File.getFiles (fastfs.js:297:32)
    at fastfs.js:79:54
    at Array.map (native)
    at Fastfs.getAllFiles (fastfs.js:79:37)
    at Fastfs.findFilesByExts (fastfs.js:87:17)
    at HasteMap.build (HasteMap.js:27:33)
    at index.js:125:33
    at tryCallOne /home/ysc/rn/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
    怎么解决呢,环境是Ubuntu 14.04 & React Native 0.17


  • administrators

    重启一下机器试试?



  • @sunnylqm 哥,我的突然出了问题了啊, 在启动packer时
    ERROR EPERM: operation not permitted, lstat 'C:\Users\Administrator\Desktop\Aw
    esomeProject\android\app\build\generated\source\r\debug'
    {"errno":-4048,"code":"EPERM","syscall":"lstat","path":"C:\Users\Administrator
    \Desktop\AwesomeProject\android\app\build\generated\source\r\debug"}
    Error: EPERM: operation not permitted, lstat 'C:\Users\Administrator\Desktop\Awe
    someProject\android\app\build\generated\source\r\debug'
    at Error (native)


登录后回复