【问题标题】:react-native: The watchman connection was closedreact-native:守望者连接已关闭
【发布时间】:2016-09-19 13:49:38
【问题描述】:

这里的 React-native 新手问题:我无法让它在 osx 上运行。启动时 react-native run-ios testapp 我的应用程序构建没有错误并启动 iphone 模拟器,在新终端“React Packager”中我收到以下错误:

 ERROR  The watchman connection was closed
Error: The watchman connection was closed
    at Client.cancelCommands (/Users/elgerm/react/test3/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:52:15)
    at Socket.<anonymous> (/Users/elgerm/react/test3/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:128:12)
    at emitNone (events.js:72:20)
    at Socket.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:921:12)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)

在模拟器中添加了应用程序“testapp”,但在启动它时,它会立即崩溃/停止。

我在故障排除指南中找不到任何相关内容。有人有什么想法吗?

【问题讨论】:

    标签: ios react-native watchman


    【解决方案1】:

    你需要重新启动 react 打包器。

    通过以下方式执行此操作: 1) 在终端中运行 npm start 2)在您的设备或模拟器上查找“reloadJS”按钮并单击它

    【讨论】:

      猜你喜欢
      • 2017-01-05
      • 1970-01-01
      • 1970-01-01
      • 2017-03-14
      • 2016-07-18
      • 1970-01-01
      • 2013-05-31
      • 1970-01-01
      相关资源
      最近更新 更多