尝试运行react-native run-android时,JS bundler立即关闭

时间:2019-12-15 12:09:42

标签: react-native

我想在新安装的Windows 10上使用react-native。 我遵循了https://facebook.github.io/react-native/docs/getting-started(React Native CLI快速入门)上的所有说明。

但是当我使用npx react-native run-android时,JS server立即关闭了!

我该如何解决?

我的系统信息:

    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz
    Memory: 9.97 GB / 15.88 GB
  Binaries:
    Node: 13.3.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.21.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
  SDKs:
    Android SDK:
      API Levels: 19, 23, 26, 27, 28, 29
      Build Tools: 23.0.1, 26.0.3, 27.0.3, 28.0.3, 29.0.2
      System Images: android-28 | Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: Version  3.5.0.0 AI-191.8026.42.35.6010548
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

1 个答案:

答案 0 :(得分:0)

您已安装Android Studio吗?另外,您使用的是Expo版本还是Pure React Native版本?最后一件事是您可以尝试运行此命令吗? npm start还是expo start