Could not connect to React Native development server on Android

前端 未结 28 2001
鱼传尺愫
鱼传尺愫 2020-11-30 22:10

When I run react-native run-android, it gives me the following error:

Could not connect to development server

28条回答
  •  Happy的楠姐
    2020-11-30 22:19

    Basically this error comes when npm server is not started.

    So at first check the npm server status, if it's not running then start npm with command npm start and you can see in terminal:

    Loading dependency graph done.

    Now npm is started and run your app in another terminal with command

    react-native run-android
    

提交回复
热议问题