react-native start 启不来。。



  • [root@real-server-04 reactProject2]# 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
    /opt/reactProject2

    [15:05:28] <START> Building Dependency Graph
    [15:05:28] <START> Crawling File System
    [15:05:28] <START> Loading bundles layout
    [15:05:28] <END> Loading bundles layout (1ms)

    React packager ready.

    ERROR watch /opt/reactProject2/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/color-v11 ENOSPC
    {"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /opt/reactProject2/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/color-v11","filename":"/opt/reactProject2/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/color-v11"}
    Error: watch /opt/reactProject2/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/color-v11 ENOSPC
    at exports._errnoException (util.js:856:11)
    at FSWatcher.start (fs.js:1313:19)
    at Object.fs.watch (fs.js:1341:11)
    at NodeWatcher.watchdir (/opt/reactProject2/node_modules/sane/src/node_watcher.js:144:20)
    at Walker.<anonymous> (/opt/reactProject2/node_modules/sane/src/node_watcher.js:351:12)
    at emitTwo (events.js:87:13)
    at Walker.emit (events.js:172:7)
    at /opt/reactProject2/node_modules/walker/lib/walker.js:69:16
    at /opt/reactProject2/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:140:16
    at /opt/reactProject2/node_modules/react-native/node_modules/graceful-fs/graceful-fs.js:140:16

    See http://facebook.github.io/react-native/docs/troubleshooting.html

    也没做什么。就npm install react-native-http --save 多装这个库


  • administrators

    @wcg 说:

    react-native-http

    我不觉得这是一个已经可以用的模块
    https://www.npmjs.com/package/react-native-http
    作者说work in progress 并且看上去好久没更新了



  • @sunnylqm xiexie,把http去掉 了。


登录后回复