【原创】解决React Native报错:unable to connect with remote debugger......

blogdaren 2018-07-12 抢沙发 3226人次

问题背景:

Android真机调试 react-native  run-android,结果报错:unable to connect with remote debugger......

问题分析:

一般普遍是 node.js packger 服务没有正常启动导致,后来发现并不是这个原因,经查日志发现新的错误:

Loading dependency graph, done.
Launching Dev Tools...
Google Chrome exited with error: { Error: spawn chromium ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn chromium',
  path: 'chromium',
  spawnargs: [ 'http://localhost:8081/debugger-ui' ] }

问题原因:

系统中没有安装 chromium 所致

解决方案:

yum install chromium 

注意事项:

安装 chromium 稍有麻烦,请移步这里: http://www.blogdaren.com/post-2427.html

版权声明:除非注明,本文由( blogdaren )原创,转载请保留文章出处。

本文链接:【原创】解决React Native报错:unable to connect with remote debugger......

发表评论:

您的昵称:
电子邮件:
个人主页: