【问题标题】:React native the development server returned response error code: 500 can't fixReact Native 开发服务器返回响应错误码:500 can't fix
【发布时间】:2022-01-11 18:27:28
【问题描述】:

我正在尝试通过 Visual Studio 代码运行 android 应用程序。我按顺序使用了这个命令:

npx react-native init imza
npx react-native run
npx react-native run-android

但我在搜索相同主题时遇到此错误,但找不到任何解决方案我该怎么办? enter image description here

【问题讨论】:

  • 如果您使用的是节点 17,您可以尝试将其降级到 16 LTS 吗?如果它没有帮助,同样的问题在这里问:stackoverflow.com/questions/60804568/…
  • @UgurEren 是的,降级到 16 LTS 解决了我的问题,谢谢。

标签: react-native


【解决方案1】:

试试这个

- Go to your root project
- Open powershell
- Run npm start —–reset-cache
- When it is done, don't close it & open another powershell in your project's root directory at the same time
- Run react-native run-android

【讨论】:

    猜你喜欢
    • 2020-04-29
    • 1970-01-01
    • 1970-01-01
    • 2021-09-16
    • 2017-06-07
    • 2017-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多